9618/31/M/J/23 question 1: worked solution (May/June 2023, paper 31)
Show as plain textHide 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. Q38 9618/31/M/J/23 original Q1 Structured · 6 marks Worked solution (a) Change 113.75 to binary: 113 = 1110001 and 0.75 = 0.11, so 113.75 = 1110001.11 [1] Normalise: 0.111000111 × 2⁷. The point moves 7 places, so the exponent is 7 = 111 [1] Mantissa Exponent 0111000111 000111 System 1 correct [1] System 2 (8-bit mantissa, 8-bit exponent). The mantissa is cut to 8 bits: Mantissa Exponent 01110001 00000111 System 2 correct [1] (b) The mantissa in system 2 has not enough bits to hold the whole number: 10 are needed but only 8 are available [1] So precision is lost because the number is truncated [1] KEY IDEA If the mantissa has too few bits, the least significant bits are cut off and precision is lost. TOTAL 6 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.