Which of the following would be the best example of a counter-controlled loop?

A. Print a number backward.
B. Validate data read from the keyboard.
C. Print a calendar.
D. Print the sum of the digits in an integer.


Answer: C

Computer Science & Information Technology

You might also like to view...

Outlook automatically assigns a different ____ to each new calendar you create, as shown in the accompanying figure.

A. arrangement B. color C. list D. view

Computer Science & Information Technology

If the formula, =$B$56 +D59, is copy and pasted three columns over and two rows down, what would the new formula be?

A) =$B$56+G61 B) =B56+D59 C) =$E$58+G61 D) =$D$59+F62

Computer Science & Information Technology

To declare a structure member, the data type name appears ____ the braces in the declaration statement.

A. after B. between C. before D. either before or after

Computer Science & Information Technology

When installing a new device, which statement is accurate?

A. a mouse may not require an additional device driver installation B. Vista drivers never work with Windows 7 C. 32-bit drivers can be installed in a 64-bit OS D. 64-bit drivers can be installed in a 32-bit OS

Computer Science & Information Technology