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

Q52 · 9618/32/O/N/25 Q2

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

Q529618/32/O/N/25original Q2Structured · 6 marks
Question 2 from 9618/32/O/N/25

Worked solution

(a)

Find the exponent first, then move the binary point.

Exponent 001011 = 8 + 2 + 1 = 11, so the point moves 11 places right [1]

Mantissa 0.111100101 × 211 = 11110010100.0

Add the place values: 1024 + 512 + 256 + 128 + 16 + 4 [1]

Write: 1940 [1]

(b)

Convert 26.6875 to binary: 16 + 8 + 2 + 0.5 + 0.125 + 0.0625 = 11010.1011 [1]

Normalise: move the binary point 5 places left to get 0.110101011 × 25. The exponent is 5 = 000101 [1]

Mantissa has 10 bits: the sign bit 0, then the nine digits 110101011.

MantissaExponent
0 1 1 0 1 0 1 0 1 10 0 0 1 0 1

Mantissa 0110101011 and exponent 000101 [1]

KEY IDEAThe exponent says how many places to move the binary point: right if positive, left if negative.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/32/O/N/25 question 2
VIDEO
▶ Starts at Q2 (13:30)

Starts at Q2 (13:30) · by Zafar Ali Khan (ZAK). 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.