
Lesson 7-1: Check Prelab Exercises
Additional Control Structures | 159
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Run program Loops and check your answers. Were your answers correct? If not, do
you understand your mistakes?
Exercise 2: while loops and for loops are pretest loops; the loop body is not executed if the ending
condition is true initially. do-while loops are posttest loops; their bodies are always executed at
least once.
Exercise 3: Run program Switches to check your answers. Were your answers correct? If not, do
you understand your mistakes?