9618/31/O/N/21 question 1: worked solution (October/November 2021, 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. Q35 9618/31/O/N/21 original Q1 Structured · 7 marks Worked solution (a)(i) The number is 1011100.011001. Put the point after the sign bit: 0.1011100011001. The point moved 7 places, so the exponent is 7. The mantissa is 12 bits: the sign bit 0 and the first 11 bits of the number (the last bit is lost): 010111000110 [1] Exponent 7 in 4 bits: 0111 [1] (a)(ii) Consequence: the precision (accuracy) is reduced [1] Justification: the number has 13 bits (14 with the sign bit) but the mantissa holds only 12, so the least significant bits are lost (truncated) [1] (b) Say why normalising is done: It stores the maximum range of numbers in the smallest number of bits [1] It removes leading zeros (or ones), so the most significant bits are used and precision (accuracy) is as high as possible [1] Each number has only one representation, so there are no duplicates. Very large and very small numbers can be stored accurately [1] Any three of these ideas score. KEY IDEA Normalising makes the mantissa start 01 or 10, which gives the best precision for the bits available. TOTAL 7 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.