Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 8.
Draw one symbol for each statement:
IF Number = 20: a diamond (decision) [1]
PRINT Number: a parallelogram (input/output) [1]
Number ← Number + 1: a rectangle (process) [1]
Write the type of each statement:
IF Number = 20: selection [1]
PRINT Number: output [1]
Number ← Number + 1: counting [1]
▶ Whole paper
Video solution of the whole paper · by CS BY AQIB KHAN. 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.