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

Q35 · 9618/31/O/N/21 Q1

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

Q359618/31/O/N/21original Q1Structured · 7 marks
Question 1 from 9618/31/O/N/21

Worked solution

(a)(i)

The number is 1011100.011001. Put the point after the sign bit: 0.1011100011001. The point moved 7 places, so the exponent is 7.

The mantissa is 12 bits: the sign bit 0 and the first 11 bits of the number (the last bit is lost): 010111000110 [1]

Exponent 7 in 4 bits: 0111 [1]

(a)(ii)

Consequence: the precision (accuracy) is reduced [1]

Justification: the number has 13 bits (14 with the sign bit) but the mantissa holds only 12, so the least significant bits are lost (truncated) [1]

(b)

Say why normalising is done:

It stores the maximum range of numbers in the smallest number of bits [1]

It removes leading zeros (or ones), so the most significant bits are used and precision (accuracy) is as high as possible [1]

Each number has only one representation, so there are no duplicates. Very large and very small numbers can be stored accurately [1]

Any three of these ideas score.

KEY IDEANormalising makes the mantissa start 01 or 10, which gives the best precision for the bits available.
TOTAL 7 marks

Official mark scheme

Mark scheme for 9618/31/O/N/21 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.