
Lab, Chapter 7
Lecture 2
Exercises from Chapter 7
1. Complete Exercise 5. Frog and Ladybug: ______________
2. Complete Exercise 10. Wind-up Penguin: ______________
Concept Questions (Short answer)
4. Give at
least one significant difference between the way a
5. Why is the While statement considered a conditional loop?
6. Although in some programs a While statement should be infinite, in most programs a While statement should eventually end. How can you make sure that a While statement will eventually end?
7. Is it possible that the block of instructions within a While statement might never be executed at all? If not, explain why not. If so, give an example.
