Cambridge O Level Computer Science 2210 · 8.1 Programming concepts

Q19 · 2210/22/M/J/23 Q6

Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.

Q192210/22/M/J/23original Q6Structured · 6 marks
Question 6 from 2210/22/M/J/23

Worked solution

Give any three of these features, each with an example.

Feature: meaningful identifiers (names that say what they store) [1]

Example: use Total to store a running total [1]

Feature: comments that explain how the program works [1]

Example: // all values are zeroed before the next calculation [1]

Feature: procedures and functions for the tasks in the program [1]

Example: CalculateInterest(Deposit, Rate) [1]

KEY IDEAMeaningful names, comments and procedures or functions make code easier for another programmer to understand.
TOTAL 6 marks

Official mark scheme

Mark scheme for 2210/22/M/J/23 question 6
VIDEO
▶ 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.