Question 10

AQA Computer Science November 2021 Paper 2 (7517/2)A level8 marks

On the specification

10.1
4.5 Fundamentals of data representation
10.2
4.5 Fundamentals of data representation
10.3
4.5 Fundamentals of data representation
10.4
4.5 Fundamentals of data representation
10.5
4.5 Fundamentals of data representation
Question text

10 box A particular computer uses a normalised floating point representation with an 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 10.1 Four-bit patterns that are stored in this computer’s memory are listed in Figure 5 and are labelled with the letters A to D. Three of the bit patterns are valid normalised floating point numbers and one is not. Figure 5 Complete Table 2 below. In the Correct letter (A–D) column write the appropriate letter from A to D to indicate which bit pattern in Figure 5 is an example of the type of value described in the Value description column. Do not use the same letter more than once. Table 2 Value description Correct letter (A–D) A negative value that is valid in the representation. The largest positive value that can be represented in the system. A value that is not valid in the representation because it is not normalised. [3 marks] 10.2 box Figure 6 shows a floating point representation of a number: Figure 6 Calculate the decimal equivalent of the number. You should show your working. [2 marks] In this floating point system, the closest possible representation of the decimal number 104.7 is shown in Figure 7. Figure 7 By converting this number back to decimal it can be seen that the actual value stored is 105 10.3 Calculate the absolute error that has occurred when representing 104.7 in Figure 7. [1 mark] 10.4 box Calculate the relative error that has occurred when representing 104.7 in Figure 7. Express your answer as a percentage to two decimal places. [1 mark] 10.5 Explain why the relative error is usually considered to be a more important measure of error than the absolute error. [1 mark]