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

Q45 · 9618/31/O/N/24 Q1

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

Q459618/31/O/N/24original Q1Structured · 6 marks
Question 1 from 9618/31/O/N/24

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.

MantissaExponent
0110010010001000

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 IDEANormalised numbers start 01 (positive) or 10 (negative); the exponent says how far to move the binary point.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/31/O/N/24 question 1
VIDEO
▶ Topic lesson

A lesson on this topic · by Craig'n'Dave. 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.