2210/21/M/J/25 question 5: worked solution (May/June 2025, paper 21)
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. Q35 2210/21/M/J/25 original Q5 Structured · 4 marks Worked solution MOD and DIV MOD : gives the remainder of a division [1] Example: X ← MOD(10, 3) [1] DIV : gives the whole-number part ( quotient ) of a division [1] Example: Y ← DIV(10, 3) [1] KEY IDEA MOD gives the remainder; DIV gives the whole-number answer. TOTAL 4 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.