Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.
Match each concept to its description:
| Programming concept | Description |
|---|---|
| counting | tracking the number of iterations a program has performed in a loop |
| repetition | carrying out an action multiple times within a loop structure |
| selection | branching off to take a course of action depending on the answer to a question |
| sequence | a set of statements to be executed in order |
| totalling | adding together the numbers in a list of numbers |
Each correct line scores 1 mark, to a maximum of four:
counting → tracking the number of iterations a program has performed in a loop [1]
repetition → carrying out an action multiple times within a loop structure [1]
selection → branching off to take a course of action depending on the answer to a question [1]
totalling → adding together the numbers in a list of numbers [1]
sequence → a set of statements to be executed in order is also correct, but the most you can score is 4.
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.