Which of the following is not required for counter-controlled repetition?
a) the special value -1 to mark the end of data input
b) initial value of the control variable
c) increment or decrement by which the control variable is modified each time through the loop
d) condition that tests for the final value of the control variable.
a) the special value -1 to mark the end of data input
You might also like to view...
Which of the following is not true about validation text?
A) It provides feedback on what was wrong with the data. B) It displays anytime a field is entered to aid in data entry. C) It is considered a custom error message. D) It displays when a data violation has occurred.
Where is it legal to put a break statement? What does the break do there?
a) A break is placed in a simple (unnested) loop, to terminate the loop. b) A break is placed in an inner block of nested blocks, to transfer control beyond the end of block the break is within. c) A break is placed in a loop in nested loops, to transfer control beyond the end of the innermost loop the break is within. d) A break is placed in a switch statement, to terminate the switch by transferring control beyond the end of the switch. e) A break is placed in a loop where it restarts the loop.