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

Q37 · 9618/32/O/N/22 Q1

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

Q379618/32/O/N/22original Q1Structured · 6 marks
Question 1 from 9618/32/O/N/22

Worked solution

(a)

The largest positive mantissa is 0 followed by all 1s, and the largest positive exponent is 0 followed by all 1s.

MantissaExponent
0111111111101111

Both correct [1]

(b)

Exponent 01001 = 9, so the point moves 9 places right [1]

Mantissa 10110010011 is 1.0110010011. Move the point 9 places: 1011001001.1 [1]

Evaluate: –512 + 128 + 64 + 8 + 1 + 0.5

Write: –310.5 [1]

(c)

Underflow happens after an arithmetic (or logical) operation [1]

when the result is too small to be represented in the available bits (the number of bits is not enough) [1]

KEY IDEATwo's complement mantissa: the first bit has a negative place value; the exponent says how far to move the point.
TOTAL 6 marks

Official mark scheme

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