Question 5
OCR Computer Science June 2017 Paper 1AS8 marks
On the specification
- (a)
- 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
5 (a) Convert the binary number 01101111 to a hexadecimal number. [1] (b) Convert the denary number −19 to an 8-bit number using: (i) Two’s complement representation. [1] (ii) Sign and Magnitude representation. [1] (c) The two values below are stored using unsigned binary. Calculate the subtraction of 01110010 from 11000011. Show your working. 11000011 − 01110010 [2] 5 (d) Convert the denary number 1 /8 (i.e. 1.625) to a normalised floating point binary number using 5 bits for the mantissa and 3 bits for the exponent. Show your working. [3]