Question 3
OCR Computer Science June 2025 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
- (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
- (d)(i)
- 1.4 Data types, data structures and algorithms
- (d)(ii)
- 1.4 Data types, data structures and algorithms
Question text
(a) (i) Convert the denary number 189 into an 8-bit binary number. [1] (ii) Convert the denary number 189 into a hexadecimal value. [1] (iii) Convert the hexadecimal value E4 into a denary number. [1] (b) Explain the effect that a right shift of three places will have on a positive binary number. [2] (c) Show the subtraction of these two floating point binary numbers. Both numbers are stored in a normalised floating point format, using 6 bits for the mantissa and 4 for exponent. You should show your result in the same format. Show your working out. 011010 0011 – 010010 0010 Working space Final 6-bit mantissa Final 4-bit exponent [6] (d) (i) Show the result of applying a bitwise AND mask of 1010 1110 to the byte 1010 0011. Byte 1010 0011 AND Mask 1010 1110 Result [2] (ii) State the purpose of the bitwise AND mask. [1]