Question bank › A-level Computer Science › Paper 2 – Computer systems

Data representation (two's complement, floating point, normalisation, error checking)

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

1Core3 marks

An 8-bit register stores signed integers using two's complement.

(a) Show how the denary value −45 is represented in this register. [2]

(b) State the range of denary values that can be stored in an 8-bit two's complement register. [1]

2Core5 marks

Two numbers are stored as 8-bit two's complement integers:

A = 01101011    B = 11100110

(a) Convert B to denary. [2]

(b) Add A and B using binary addition, giving your answer as an 8-bit binary number. Show any carry that is discarded. [2]

(c) Convert your answer to (b) to denary. [1]

3Standard5 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]

4Hard5 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]

5Hard6 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]

6Standard6 marks

(a) A byte uses even parity, with the most significant bit as the parity bit and the 7-bit ASCII code for 'C' (1000011) in the other bits. State the byte stored. [1]

(b) The byte 10110010 is received. A student says: "Even parity checking passed, so the byte must be correct." Explain why the student may be wrong. [2]

(c) The first 12 digits of an ISBN-13 are 978140883219. Calculate the check digit. Digits are multiplied alternately by 1 and 3 starting with 1, the products are summed, and the check digit makes the total a multiple of 10. [3]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro