2210/22/O/N/23 question 7: 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. Q24 2210/22/O/N/23 original Q7 Structured · 5 marks Worked solution Count the characters: "The Mind" starts at position 25 and is 8 characters long (including the space). Quote ← "Learning Never Exhausts The Mind" Start ← 25 Number ← 8 OUTPUT SUBSTRING(Quote, Start, Number) OUTPUT LCASE(Quote) Store the string in Quote [1] Correct start value, 25 [1] Correct number of characters, 8 [1] Use of SUBSTRING with Quote and two other parameters, and its result output [1] Use of LCASE on Quote, and the result output [1] KEY IDEA Use SUBSTRING with a start position and a length, and LCASE for lower case. TOTAL 5 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Paper solver.. Tap the picture to open it on YouTube.