Question 5
AQA Computer Science June 2022 Paper 2 (7517/2)A level11 marks
On the specification
- 5.1
- 3.5 Fundamentals of data representation
- 5.2
- 4.5 Fundamentals of data representation
- 5.3
- 4.5 Fundamentals of data representation
- 5.4
- 4.5 Fundamentals of data representation
- 5.5
- 4.5 Fundamentals of data representation
Question text
5.1 Figure 2 shows a number stored using a fixed point representation and two’s complement, with six bits before and four bits after the binary point. Figure 2 10 1 1 0 0 1 0 1 1 Convert the number in Figure 2 to decimal. You should show your working. [2 marks] 5.2 State two reasons why values stored using a floating point representation are usually stored in normalised form. [2 marks] Reason 1 Reason 2 Questions 05.3, 05.4 and 05.5 use a normalised floating point representation with an box 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 5.3 Figure 3 shows a floating point representation of a number. Figure 3 Calculate the decimal equivalent of the number. Express your answer as a fraction or to 4 decimal places. You should show your working. [2 marks] Questions 05.3, 05.4 and 05.5 use a normalised floating point representation with an box 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 5.4 Write the normalised floating point representation of the decimal value –23.25 in the boxes below. You should show your working. [3 marks] Questions 05.3, 05.4 and 05.5 use a normalised floating point representation with an box 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 5.5 Figure 4 shows the closest possible representation of the decimal number –0.22558594 in this floating point system. Figure 4 By converting this number back to decimal it can be seen that the actual value stored is –0.2265625 Calculate the relative error that has occurred when representing –0.22558594 You should show your working. Express your answer as a percentage to 2 decimal places. [2 marks] Answer 11