Cambridge A2 Level Computer Science 9618 · 13.3 Floating-point numbers, representation and manipulation

Q44 · 9618/33/M/J/24 Q1

Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 3 of 3.

Q449618/33/M/J/24original Q1Structured · 6 marks
Question 1 from 9618/33/M/J/24

Worked solution

(a)

The mantissa is 0100111100 and the exponent is 001001.

Exponent 001001 = 8 + 1 = 9 [1]

The mantissa is 0.100111100. Move the binary point 9 places right: 100111100. [1]

Place values: 256 + 32 + 16 + 8 + 4

Answer = 316 [1]

(b)

Write 102.75 in binary: 01100110.11

Invert the bits and add 1 for the negative: 10011001.00 + 1 = 10011001.01 [1]

Normalise: put the binary point after the first digit, giving 1.001100101. The point moved 7 places, so the exponent is 7 = 000111. [1]

MantissaExponent
1001100101000111

Write the mantissa 1001100101 and the exponent 000111 [1]

KEY IDEAMove the binary point by the exponent to read a floating-point number; to store one, find the exponent from how far the point moves to sit after the first digit.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/33/M/J/24 question 1
VIDEO
▶ Whole paper

Video solution of the whole paper · by CsWithMym. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.