Question 4
OCR Computer Science June 2022 Computer principles (H046-01)AS9 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
- (b)(iii)
- 1.4 Data types, data structures and algorithms
- (b)(iv)
- 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
4 (a) State why computer systems store data in binary. [1] (b) (i) Convert the denary number 97 into an 8-bit binary number. [1] (ii) Convert the denary number 171 into a hexadecimal number. [1] (iii) Convert the denary number –97 into an 8-bit binary number using two’s complement. [1] (iv) Convert the denary number –17 into an 8-bit binary number using sign and magnitude. [1] (c) State one advantage of using two’s complement instead of sign and magnitude. [2] (d) Calculate the addition of these two 8-bit (unsigned) binary numbers. Show your working. 11011011 10001001 + [2]