Question 4

OCR Computer Science Specimen Paper 1AS9 marks

On the specification

(a)
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
(d)(i)
1.4 Data types, data structures and algorithms
(d)(ii)
1.4 Data types, data structures and algorithms
Question text

4 (a) Convert the denary number 43 into an 8 bit binary number. [1] (b) Using binary subtraction, calculate your answer to the following. You must show your working. 01001100 - 00110010 [2] (c) Using two’s complement convert the denary number -43 into an 8 bit binary number. You must show your working. [2] (d) (i) Using normalised floating point binary representation using 4 bits for the mantissa and 4 for the exponent, represent the denary value 1.75. You must show your working. [2] (d) (ii) Using normalised floating point binary representation using 4 bits for the mantissa and 4 for the exponent, represent the denary value -1.75. You must show your working. [2]