Question bank › A-level Computer Science › Fundamentals of data representation

Fixed and floating point, errors, normalisation, underflow and overflow

Answer on paper first, then reveal the mark scheme one mark at a time.

1Standard5 marks

A computer stores real numbers in floating point form using a mantissa of 8 bits and an exponent of 4 bits. Both are two's complement. The binary point of the mantissa is immediately after the sign bit.

(a) Calculate the denary value of the number with mantissa 01101000 and exponent 0011. [3]

(b) Calculate the denary value of the number with mantissa 01010000 and exponent 1110. [2]

2Hard5 marks

A computer stores real numbers in floating point form using an 8-bit mantissa followed by a 4-bit exponent. Both are in two's complement and the binary point of the mantissa is immediately after the sign bit.

(a) Represent −3.25 as a normalised floating point number in this format. Show your working. [4]

(b) Explain why floating point numbers are normalised. [1]

3Hard6 marks

A floating point system uses an 8-bit two's complement mantissa (point after the sign bit) and a 4-bit two's complement exponent. All numbers are stored normalised.

(a) Calculate the smallest positive normalised value that can be stored. Give your answer as a fraction or decimal. [3]

(b) Calculate the largest positive value that can be stored. [2]

(c) The designer changes the format to a 6-bit mantissa and a 6-bit exponent. State the effect on range and on precision. [1]

Stuck on this topic?

Book a free 30-minute session on WhatsApp and we'll find exactly which step is costing you the marks. Or build a timed paper on it.

Free 30-minute session