Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.
DIV does integer division. [1]
Only the whole-number part of the answer is kept, so the remainder is thrown away. [1]
Example: DIV(9, 4) = 2
ROUND gives a number rounded to a stated number of decimal places. [1]
It goes up or down depending on the next digit: 5 or more rounds up, less than 5 rounds down. [1]
Example: ROUND(4.56, 1) = 4.6
▶ Whole paper
Video solution of the whole paper · by ZAINEMATICS. 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.