Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 3 of 3.
Match by what each keyword does:
| Description | Keyword |
|---|---|
| stores data in a file | WRITE |
| retrieves data from a file | READ |
| displays data on a screen | OUTPUT |
| enters data from a keyboard | INPUT |
stores data in a file → WRITE [1]
retrieves data from a file → READ [1]
displays data on a screen → OUTPUT [1]
enters data from a keyboard → INPUT [1]
OPEN is not used.
Write any two reasons:
The data is stored permanently (it is kept after the program ends or the power is off) [1]
The data can be moved to another computer [1]
Another copy (backup) can be made and stored or accessed elsewhere. (only two marks)
▶ Whole paper
Video solution of the whole paper · by O/Alevel CS by Wasiq. 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.