2210/21/M/J/23 question 6: worked solution (May/June 2023, paper 21)

Show as 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. Q17 2210/21/M/J/23 original Q6 Structured · 4 marks Worked solution 1 Write: Meaningful identifiers (names that describe what the variable, array or constant is for) [1] Reason: so the programmer, or a later programmer, can easily see the purpose of each variable and follow it through the program. [1] 2 Write: Comments (notes that explain sections of the code) [1] Reason: so a programmer can find a section quickly and knows what it is for. [1] Using procedures and functions also scores (reason: the program is modular and easier to update). KEY IDEA Meaningful names, comments and procedures make a program easy to read and change later. TOTAL 4 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by ZAINEMATICS. Tap the picture to open it on YouTube.