Answer the following statement(s) true (T) or false (F)

1. Loop structures can evaluate the condition only at the beginning of the repeating section of code.
2. The do while construct is an example of a posttest loop.
3. C++’s for statement is virtually interchangeable with its while statement.
4. Combining interactive data entry with the repetition capabilities of the while statement produces adaptable and powerful programs.
5. As a general rule, the continue statement is less useful than the break statement.


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

Computer Science & Information Technology

You might also like to view...

To find the smallest and largest element of a Collection, use Collections methods _________ and __________.

a. least, greatest. b. smallest, largest. c. first, last. d. min, max.

Computer Science & Information Technology

The ____ filter finds edges using a mathematical algorithm to identify where in the image pixels of high contrast abut.

A. Low Pass B. High Pass C. Brighten Edges D. Noise

Computer Science & Information Technology

Compressing a file decreases the file size.

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

Computer Science & Information Technology

MC A comma in the print statement notifies Python to:

a) skip to the next statement in the program b) ignore the remainder of the line c) add a space after a string rather than begin a new line d) None of the above

Computer Science & Information Technology