9618/32/O/N/25 question 11: worked solution (October/November 2025, paper 32)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 20.1 Programming Paradigms Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 1 of 2. Q22 9618/32/O/N/25 original Q11 Structured · 7 marks Worked solution Load location 300 into A and 420 into B. B holds 150, so LDI B loads the contents of address 150 (26). Then add A (86): 26 + 86 = 112. LDD 300 STO A LDD 420 STO B LDI B ADD A STO Answer A: B: Answer: LDD 300 [1] STO used correctly with a label [1] LDD 420 [1] LDI B (uses the value in B as an address) [1] ADD A [1] Labels A: , B: and Answer: set up as addresses away from the code, and the correct contents [1] Label Contents A: 86 B: 150 Answer: 112 Correct final value 112 in Answer: [1] KEY IDEA LDI treats the value in a label as an address and loads from that address. TOTAL 7 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.