Question 6

OCR Computer Science June 2017 Paper 1A level12 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
(d)
1.4 Data types, data structures and algorithms
Question text

6 (a) (i) Convert the denary number 188 to an unsigned 8-bit binary number. [1] (ii) Convert the denary number 188 to hexadecimal. [1] (b) (i) Convert the denary number −44 to an 8-bit binary number with sign and magnitude representation. [1] (ii) Convert the denary number −44 to an 8-bit binary number with two’s complement representation. [1] (c) Explain how, using bit shift, the unsigned binary number 00101100 can be divided by 4. [2] (d) Demonstrate subtraction on the two numbers below, both stored in normalised floating point format, using 6 bits for their mantissa and 4 for their exponent. Show the result in the same format. Show your working. 010010 0100 - 010010 0010 [6]