Question 3
OCR Computer Science June 2023 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
- (b)(i)
- 1.4 Data types, data structures and algorithms
- (b)(ii)
- 1.4 Data types, data structures and algorithms
- (b)(iii)
- 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
3 (a) (i) Convert the denary number 189 to hexadecimal. [1] (ii) Convert the unsigned binary number 1010101111 to hexadecimal. [1] (b) Negative binary values can be represented using either sign and magnitude or two’s complement. (i) Convert the denary number -107 to an 8-bit binary number using sign and magnitude. [1] (ii) Convert the denary number -107 to an 8-bit binary number using two’s complement. [1] (iii) Give one advantage of storing values using two’s complement instead of sign and magnitude. [1] (c) Show how the denary value -15.75 can be represented as a normalised floating point binary number using 8 bits for the mantissa and 4 bits for the exponent. You must show your working. [4] (d) The normalised floating point binary number 0100 1110 is stored using 4 bits for the mantissa and 4 bits for the exponent, both in two’s complement. Convert this number to denary. You must show your working. [3] (e) Complete each of the following sentences relating to the storage of floating point binary numbers with an appropriate word. Increasing the number of bits used for the mantissa increases the of the number that can be stored. Increasing the number of bits used for the exponent increases the of the number that can be stored. [2]