Question 9
OCR Computer Science June 2018 Paper 1A level15 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)
- 1.4 Data types, data structures and algorithms
- (e)
- 1.4 Data types, data structures and algorithms
- (f)
- 1.4 Data types, data structures and algorithms
- (g)
- 1.4 Data types, data structures and algorithms
Question text
9 (a) Demonstrate how the bytes below are added together. Show your working. 01101010 00111111+ [2] (b) Demonstrate how the bottom byte below is subtracted from the top byte. Show your working. 11001111 00111001 ‑ [2] (c) Convert the binary number shown below to hexadecimal. 0011011100001111 [2] (d) The number below is represented in floating point format with a 5‑bit mantissa in two’s complement followed by a 3‑bit exponent in two’s complement. Calculate the denary value of the number, showing your working. 01001 010 [3] (e) The numbers below are represented in floating point format with a 5‑bit mantissa in two’s complement followed by a 4‑bit exponent in two’s complement. Normalise the numbers shown below, showing your working. 00011 0010 [2] 11100 0110 [2] (f) Show the byte below after having an AND applied with the masking byte. Byte 1 0 1 1 1 0 0 1 AND 1 1 1 1 1 1 1 1 Result [1] (g) Show the byte below after having an OR applied with the masking byte. Byte 1 0 1 1 1 0 0 1 OR 1 1 1 1 1 1 1 1 Result [1]