1. In while and do-while loops, a ??????? statement causes control to be transferred directly to the conditional expression that controls the loop.
2. In the following code snippet, which line of code contains an error?
3. The ?????????. loop is especially useful when you process a menu selection.
4. What is the output of the following code?
5. Referring to the code below, the variable count is assigned a 1.
The condition ( count <= 3 ) is evaluated as true.
6. Referring to the code above, is the following statement true or false?
7. Again, referring to the code in question 5, How many times did the block statement following the while execute?
8. The loop here is called a 'counting loop'. All loops in all forms have loop control variables.
9. What three things must be coordinated in order for a loop to run correctly?
10. The following program is supposed to write out the integers 10, 11, 12, 13, 14, and 15. Decide what should go in the blanks. (from top to bottom)
11. Which statement corresponds with the following code?
12. The following code will print "value of x :" and the values 10 to 20.
13. The continue statement takes the control to the beginning of the loop and body of the loop executes again. Whatever you can do with a while loop can be done with a for loop or a do while loop.
14. The while loop is used for scenarios where you know exactly how many times a block of code should be executed.
15. The do loop is similar to the while loop, except that the expression is not evaluated until after the do loop's code is executed.