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

Q36 · 9618/31/O/N/22 Q1

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

Q369618/31/O/N/22original Q1Structured · 9 marks
Question 1 from 9618/31/O/N/22

Worked solution

(a)

Change 202 to binary: 128 + 64 + 8 + 2 = 11001010 [1]

Put the point after the sign bit: 0.11001010 × 28. The point moves 8 places, so the exponent is 8 [1]

MantissaExponent
0110010100001000

Correct mantissa and exponent [1]

(b)

Start with the positive mantissa 01100101. Invert: 10011010. Add 1: 10011011 [1]

The exponent is the same as for +202, which is 8 [1]

MantissaExponent
1001101100001000

Correct mantissa and exponent [1]

(c)(i)

The mantissa begins with 00. A normalised mantissa must start 01 or 10, so the first two bits must be different [1]

(c)(ii)

Shift the mantissa left 2 places: 00011110 becomes 01111000. Take 2 off the exponent: 24 – 2 = 22.

MantissaExponent
0111100000010110

Correct mantissa [1]

Correct exponent [1]

KEY IDEANormalise by shifting the mantissa until it starts 01 or 10, and change the exponent by the same number of places.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/31/O/N/22 question 1
VIDEO
▶ Whole paper

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