Question 3

OCR Computer Science June 2022 Computer systems (H446-01)A level13 marks

On the specification

(a)(i)
1.4 Data types, data structures and algorithms
(a)(ii)
1.4 Data types, data structures and algorithms
(a)(iii)
1.4 Data types, data structures and algorithms
(b)
1.4 Data types, data structures and algorithms
(c)
1.4 Data types, data structures and algorithms
Question text

3 (a) (i) Convert the hexadecimal value B7E to a binary number. [1] (ii) 110010101 is a binary number that is represented using sign and magnitude. Convert this binary number to a denary number. [1] (iii) Complete this binary subtraction. Both numbers are 8-bit integer values represented using two’s complement. Show the result in the same format and show your working. 0110 1101 – 0011 0100 [3] (b) The normalised floating point number 1010 1110 is stored using 4 bits for the mantissa and 4 bits for the exponent, both in two’s complement. Give the denary version of this number, showing your working. [4] (c) Table 3 here shows floating point numbers that are stored using 6 bits for the mantissa and 3 bits for the exponent, both in two’s complement. Tick (✓) one box in each row to state whether each number is normalised or not normalised. Binary number Normalised Not normalised 010101 100 110101 111 011010 010 101010 110 Table 3 [4]