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

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. Q39 9618/32/M/J/23 original Q1 Structured · 5 marks Worked solution (a) Remove the leading 0 and move the binary point to just after the first digit so the number starts 0.1: 0101010.111 = 0.101010111 × 2⁶. The point moved 6 places, so the exponent is denary 6 = 000110 in 6 bits. The mantissa is the sign bit 0 followed by the digits 101010111, which fills all 10 bits. Mantissa Exponent 0101010111 000110 Mantissa 0101010111 [1] Exponent 000110 , with the working that the point moved 6 places [1] (b) 0101011.111001 in normalised form is 0.101011111001 × 2⁶. Write: the mantissa would need 13 bits (0.101011111001 is 13 digits with the sign bit) [1] ... but the system can only store 10 bits for the mantissa [1] The 3 least significant digits are cut off (truncated) , which causes a loss of precision [1] KEY IDEA Normalise by moving the point until the mantissa starts 0.1, count the moves for the exponent, and extra mantissa digits are truncated, so precision is lost. TOTAL 5 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.