Chapter 13: Do It, Then Ask Permission (Posttest Loops)
TRUE/FALSE
1. A repetition structure can be either a pretest loop or a posttest loop.
2. The difference between pretest and posttest loops pertains to how the accumulator is evaluated.
3. The instructions in a pretest loop will be processed at least once.
4. Most programmers prefer to use posttest loops.
5. A pretest loop is easier to write and understand than a posttest loop with a selection structure.
6. The Do…Loop statement can be used to code a pretest loop as well as a posttest loop.
7. In the pretest syntax, the condition is evaluated after the loop instructions are processed.
8. In the posttest syntax, the condition is evaluated before the loop instructions are processed.
9. In the posttest syntax, the only purpose of the Do clause is to mark the beginning of the loop.
10. Pretest loops should be used only when their instructions must be processed at least once.
11. The diamond that represents the condition appears at the top of the loop in the flowchart of a posttest
loop.
12. When a posttest loop is placed in a selection structure, the loop will be processed only when the
selection structure’s condition evaluates to True.