Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 3.
Describe the array in these points, any two, plus an example:
A list (one column) of items [1]
All items have the same data type, stored under a single identifier, with an index to find each element [1]
Example declaration: write DECLARE MyArray[1:10] OF INTEGER [1]
Use a counter as the index of the array [1]
Put the counter in a loop and add 1 each time, so the same code can check every element in turn [1]
▶ Whole paper
Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.