< Previous | Contents | Next >
1. What kinds of things would be difficult to program without loops?
2. What are the advantages and disadvantages of the switch statement ver- sus a series of if statements?
3. When might you omit a break statement from the end of a case in a
switch statement?
4. When should you use a while loop over a do loop?
5. Describe your favorite game in terms of the game loop. Is the game loop a good fit?