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

Q38 · 9618/31/M/J/23 Q1

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

Q389618/31/M/J/23original Q1Structured · 6 marks
Question 1 from 9618/31/M/J/23

Worked solution

(a)

Change 113.75 to binary: 113 = 1110001 and 0.75 = 0.11, so 113.75 = 1110001.11 [1]

Normalise: 0.111000111 × 27. The point moves 7 places, so the exponent is 7 = 111 [1]

MantissaExponent
0111000111000111

System 1 correct [1]

System 2 (8-bit mantissa, 8-bit exponent). The mantissa is cut to 8 bits:

MantissaExponent
0111000100000111

System 2 correct [1]

(b)

The mantissa in system 2 has not enough bits to hold the whole number: 10 are needed but only 8 are available [1]

So precision is lost because the number is truncated [1]

KEY IDEAIf the mantissa has too few bits, the least significant bits are cut off and precision is lost.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/31/M/J/23 question 1
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.