9618/31/M/J/25 question 2: worked solution (May/June 2025, paper 31)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 13.3 Floating-point numbers, representation and manipulation Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 3 of 3. Q48 9618/31/M/J/25 original Q2 Structured · 6 marks Worked solution (a) Move the binary point to just before the first 1: 0.00000011010111 = 0.11010111 × 2⁻⁶. Mantissa is 0.110101110 (10 bits, padded with a 0): 0 1 1 0 1 0 1 1 1 0 [1] Exponent −6: 6 = 000110, flip to 111001, add 1 = 1 1 1 0 1 0 [1] (b) Change 25.3125 to binary: 11001.0101, so 011001.0101 with a sign bit. Two's complement: flip the bits and add 1 to get 100110.1011 (−32 + 4 + 2 + 0.5 + 0.125 + 0.0625). Working: number converted to binary and to its negative form [1] Move the binary point 5 places left to give 1.001101011, so exponent 5 = 000101. Working: movement of the binary point seen [1] Mantissa: 1 0 0 1 1 0 1 0 1 1 [1] Exponent: 0 0 0 1 0 1 [1] KEY IDEA Normalise by moving the binary point so the mantissa starts 01 or 10, and put the number of places moved into the exponent in two's complement. TOTAL 6 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.