Answer the following statements true (T) or false (F)

1. In a while loop, the loop-control variable must be initialized before the loop
2. Indentation of loops does not improve the readability of programs
3. The last statement in a sentinel-controlled loop is normally a read statement.
4.The do-while loop is often the loop of choice for a menu-driven program
5. The sentinel value is always the last value added to a sum being accumulated in a sentinel-controlled loop


1. (True)
2. (False)
3. (True)
4. (True)
5. (False)

Computer Science & Information Technology

You might also like to view...

When pixels are ____________________, you can see through them.

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

Computer Science & Information Technology

Symbols that are used to evaluate data in the field to determine if it is the same (=), greater than (>), less than (<), or in between a range of values as specified by the criteria

a. Logic symbols b. Operation signs c. Comparison Operators

Computer Science & Information Technology

How many channels are in a T1 bundle?

A. 64 B. 24 C. 32 D. 16

Computer Science & Information Technology

When you edit the value of a cell included in a chart data series, you must manually refresh the chart to show the change

a. true b. false

Computer Science & Information Technology