Chapter 12: How Long Can This Go On? (Pretest Loops)
TRUE/FALSE
1. All computer programs are written using one or more of three control structures: sequence, selection,
or repetition.
2. A repetition structure can only be a pretest loop.
3. A condition can contain variables, constants, properties, methods, or operators.
4. Like the condition in the If…Then…Else statement, the condition in the Do…Loop statement must
evaluate to a Boolean value.
5. Updating refers to the process of either adding a number to or subtracting a number from a counter’s
value.
6. The loop condition is represented by a parallelogram in a flowchart.
7. Like counter variables, accumulator variables are initialized inside the loop.
8. Repetition structures use accumulator variables to tally information such as the total dollar amount of a
week’s payroll.
9. Like counter variables, accumulator variables are updated outside the loop.
10. The priming read is used to prepare or set up a loop.
11. Any code containing a priming read must also include a matching update read within the loop.