Question 2

OCR Computer Science November 2021 Computer systems (H446-01)A level14 marks

On the specification

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

2 (a) (i) Convert the denary number 231 to an unsigned 8-bit binary number. [1] (ii) Convert the hexadecimal number 6F to an unsigned 8-bit binary number. [1] (b) The floating point number 001101 0100 is stored using 6 bits for the mantissa and 4 bits for the exponent, both in two’s complement. This number is not normalised. (i) Give the normalised version of this number, showing your working. [4] (ii) Convert your answer to part (i) to denary, showing your working. [3] (c) Add together the two numbers below. Both numbers are stored in normalised floating point format, using 6 bits for their mantissa and 4 bits for their exponent which are both in two’s complement. Show the result in the same format and show your working. 011000 0110 + 010100 0100 [5]