When you know how many times a loop will execute in advance, a _______ loop should be used.

a) sentinel
b) infinite
c) counter-controlled
d) None of the above.

c) counter-controlled

Computer Science & Information Technology

You might also like to view...

Match the following items and descriptions:

I. Header II. Watermark III. Margins IV. Footer V. Symbol A. Area of blank space that appears at the top, bottom, left, and right sides of a document B. Text or graphics that displays behind text on a page C. Graphic or character not usually found on a keyboard D. One or more lines at the top of each page, containing such items as author or file name E. One or more lines at the bottom of each page, often including a page number

Computer Science & Information Technology

Which of the following is not a recommended test case for sequential search?

A. target == list[0] B. target == list[n - 1] C. target == list[i] D. target < list[0] E. target != list[i]

Computer Science & Information Technology