2210/22/O/N/23 question 5: worked solution (October/November 2023, paper 22)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 8.1 Programming concepts Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3. Q23 2210/22/O/N/23 original Q5 Structured · 3 marks Worked solution Write three points (one mark each): Give variables and constants meaningful identifiers , so programmers (and future programmers) can understand their purpose [1] Constants store values that never change while the program runs, for example a fixed tax rate [1] Variables store values that can change while the program runs, for example a total that is calculated [1] Also accepted: both are used for data storage . KEY IDEA Variables hold data that can change; constants hold fixed data; both need meaningful names. TOTAL 3 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Paper solver.. Tap the picture to open it on YouTube.