Question

Which statement is true?
a) Sentinel values are used to control iteration when the precise number of iterations is known in advance.
b) In a counter controlled-loop, the counter may not count downward.
c) Sentinels must be distinct from regular data items.
d) Sentinel-controlled iteration is often called definite iteration.

Answer

This answer is hidden. It contains 3 characters.