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...

What are three reasons for using an SQL statement for a record source?

What will be an ideal response?

Computer Science & Information Technology

The Styles window is a pane that displays a list of styles and contains tools to manage the styles

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the purpose of a remote access server?

What will be an ideal response?

Computer Science & Information Technology

To monitor and debug larger Ruby programs, you need to work with Ruby's built-in ____.

A. compiler B. debugger C. interpreter D. analyzer

Computer Science & Information Technology