9618/32/O/N/22 question 1: worked solution (October/November 2022, 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. Q37 9618/32/O/N/22 original Q1 Structured · 6 marks Worked solution (a) The largest positive mantissa is 0 followed by all 1s, and the largest positive exponent is 0 followed by all 1s. Mantissa Exponent 01111111111 01111 Both correct [1] (b) Exponent 01001 = 9, so the point moves 9 places right [1] Mantissa 10110010011 is 1.0110010011. Move the point 9 places: 1011001001.1 [1] Evaluate: –512 + 128 + 64 + 8 + 1 + 0.5 Write: –310.5 [1] (c) Underflow happens after an arithmetic (or logical) operation [1] when the result is too small to be represented in the available bits (the number of bits is not enough) [1] KEY IDEA Two's complement mantissa: the first bit has a negative place value; the exponent says how far to move the point. 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.