Section 1 Chapter 3 - Iteration Flashcards
1
Q
Iteration
A
Repetition through the use of loops
2
Q
Properties of a while loop (2)
A
- The expression controlling the loop must be a boolean
- The expression is tested at the start of the loop
3
Q
Difference between REPEAT UNTIL and WHILE
A
REPEAT UNTIL tests the expression at the end and is therefore always run at least once
4
Q
Definite iteration
A
Iteration where the number of loops is known at the beginning (for)
5
Q
Indefinite iteration
A
Iteration where the number of loops is not known and is reliant upon some condition (while)