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

1. One reason for an infinite loop in a while loop is that the loop body has no statement which
changes the value of a variable in the conditional boolean expression part of the while loop.
2. The while statement will execute the loop body if the condition evaluates to false or zero.
3. The continue statement causes the program to skip the rest of the loop body and to determine
if the loop body is to be executed again.
4. A while loop repeats the loop body zero or more times.
5. A for loop repeats the loop body zero or more times.

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

Computer Science & Information Technology

You might also like to view...

The ________ is a complex circuit that contains the central processing unit (CPU)

A) IC chip B) microprocessor C) transistor D) vacuum tube

Computer Science & Information Technology

In Excel, ________ is one method of what-if analysis

A) goal seek B) flash fill C) data validation D) error checking

Computer Science & Information Technology