9618/31/O/N/25 question 11: worked solution (October/November 2025, paper 31)

Show as 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. Q21 9618/31/O/N/25 original Q11 Structured · 7 marks Worked solution (a) Load 100 and store it in the constant. Load the contents of 632, subtract the constant, store in Answer. Then set up the labelled data away from the code. LDM #100 STO Constant LDD 632 SUB Constant STO Answer Constant: 100 Answer: LDM #100 [1] STO used with a labelled address (Constant or Answer) [1] LDD 632 [1] SUB Constant using the label [1] Value 100 stored at the labelled address Constant: away from the code [1] Completed table: Label Contents Constant: 100 Answer: Both labels ( Constant: and Answer: ) set up away from the code [1] (b) ACC = 45 − 100 Write: −55 [1] KEY IDEA Load, operate and store with labelled addresses, and put the labelled data after the code. 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.