Chapter 13
- What type of loop is a
WHILE
loop?Precheck loop.
- What type of loop is a
FOR
loop?Counter loop.
- What type of loop is a
REPEAT
loop?Post check loop.
- What is a post check loop?
A loop that is guaranteed at least one iteration. Implemented with
REPEAT
. - What is a precheck loop?
A loop that is not guaranteed an iteration. Implemented with
WHILE
. - What is a counter loop?
A loop that will iterate a given number of times. Implemented with
FOR
. - How many iterations are you guaranteed with a
WHILE
loop?None.
- How many iterations are you guaranteed with a
REPEAT
loop?1.
- When will a
FOR
loop terminate?When a certain number of iterations have been completed.
- What does the
EXIT
command do?Prematurely terminates a loop.
- Does the
FOR
loop use a custom logic statement to terminate?No.