8.1 · Lesson 4 of 7
Iteration: FOR, WHILE and REPEAT
Syllabus 8.1.3Syllabus 8.1.4
What this lesson covers
- Use sequence, selection and iteration
- Use totalling, counting and string handling
Key vocabulary
- Iteration
- Repeating a section of code.
- Count-controlled loop
- A FOR loop: repeats a set number of times.
- Pre-condition loop
- A WHILE loop: checks its condition before each repeat, so it may not run at all.
- Post-condition loop
- A REPEAT … UNTIL loop: checks its condition at the end, so it always runs at least once.
- Totalling
- Keeping a running total by adding each value to a variable.
- Counting
- Adding 1 to a variable each time something happens.
Check your learning
- Quick check: 4 questions
- Key vocabulary test: 6 terms
- Activity 1: Trace the loop · 7 questions
- Activity 2: Which loop? · 6 questions
- Activity 3: Iteration quiz · 8 questions