9618/31/O/N/24 question 1: worked solution (October/November 2024, 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. Q45 9618/31/O/N/24 original Q1 Structured · 6 marks Worked solution (a) Write 201.125 in binary: 128 + 64 + 8 + 1 + 0.125 = 11001001.001 [1] Normalise: 0.11001001001. The point moves 8 places , so the exponent is 8 = 001000. [1] The mantissa has only 10 bits, so the last two digits (01) are lost and the number loses some precision. Mantissa Exponent 0110010010 001000 Write the mantissa 0110010010 and the exponent 001000 (or state that the number loses precision / is rounded) [1] (b) The mantissa is 1010110011 and the exponent is 000101 = 5 . The mantissa is 1.010110011. Move the point 5 places right : 101011.0011 [1] Place values: -32 + 8 + 2 + 1 + 0.125 + 0.0625 [1] Answer = -20.8125 [1] KEY IDEA Normalised numbers start 01 (positive) or 10 (negative); the exponent says how far to move the binary point. 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.