Question 4
OCR Computer Science June 2024 Computer systems (H446-01)A level13 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)
- 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
- (e)
- 1.4 Data types, data structures and algorithms
Question text
(a) Two’s complement can be used to represent negative binary numbers. (i) Convert the denary number -124 into an 8-bit two’s complement binary number. [1] (ii) State one other way to represent negative binary numbers. [1] (b) Convert the denary number 298 into hexadecimal. [2] (c) The binary number 10011101 0110 is stored in normalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement. Convert this binary number into denary. You must show your working. [3] (d) The binary number 00001011 0111 is represented in unnormalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement. Convert this binary number into a normalised floating point binary number, represented using an 8-bit mantissa and 4-bit exponent format. You must show your working. [4] (e) Calculate the binary addition of these two 8-bit (unsigned) binary numbers. Show your working. 00110111 10011001 + [2]