When should a programmer select a for loop for his or her program?

A. When he or she knows the exact number of times the loop will be executed.
B. When he or she is not sure how many times the loop will be executed.
C. When he or she knows the loop must be executed at least once.
D. There is no reason to select a for loop. Any loop can be used any time.


A. When he or she knows the exact number of times the loop will be executed.

Computer Science & Information Technology

You might also like to view...

Find the error(s) in the following code. This code should modify the age column of table people.

``` 1 myResultSet = myStatement.executeQuery( 2 "UPDATE people SET age = 30 WHERE name = 'Bob'" ); ```

Computer Science & Information Technology

The native file system for Windows NT, 2000, and XP is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Mostly composed of plastic, ______________ particles can be melted on to the paper.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The TCP/IP ____ layer supports network applications and may include presentation services.?

A. ?transport B. ?application C. ?network D. ?network access

Computer Science & Information Technology