9618/12/M/J/23 question 4: worked solution (May/June 2023, paper 12)

Show as plain text

Cambridge AS Level Computer Science 9618 · 1.1 Data Representation Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3. Q12 9618/12/M/J/23 original Q4 Structured · 6 marks Worked solution (a) Number of values = 2¹⁶ = 65 536 [1] (b) Write 120 as 8-bit binary: 0111 1000 [1] Invert every bit to get the one's complement of -120: 10000111 [1] (c) A = 10, so A04 = (10 × 16²) + (0 × 16) + 4 = 2560 + 0 + 4 Working shown [1] Answer: 2564 [1] (d) Move every bit 2 places left, fill the right with 0s and lose the 2 left bits. 01001111 becomes 00111100 [1] KEY IDEA Use powers of 2 and 16, invert the bits for one's complement and shift by moving bits. TOTAL 6 marks Official mark scheme VIDEO ▶ Starts at Q4 (46:23) Starts at Q4 (46:23) · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.