Question 6

AQA Computer Science June 2023 Paper 2 (7517/2)A level8 marks

On the specification

6.1
4.5 Fundamentals of data representation
6.2
4.5 Fundamentals of data representation
6.3
4.5 Fundamentals of data representation
6.4
4.5 Fundamentals of data representation
Question text

6.1 Figure 7 shows a floating point representation of a number: Figure 7 1 1 0 1 0 0 0 1 1 0 1 Mantissa Exponent Calculate the decimal equivalent of the number in Figure 7. You should show your working. [2 marks] Question parts 06.1 and 06.2 use a normalised floating point representation with an box 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 6.2 Write the normalised floating point representation of the decimal value –23.25 in the boxes below. You should show your working. [3 marks] 6.3 On each row of Table 1, state the name of the Type of error that has occurred in the Situation that is described. [2 marks] Table 1 Situation Type of error A calculation is performed and the result of the calculation is so close to zero that the number that is stored is zero. A calculation is performed and the result of the calculation is too large to fit in the available number of bits. A decimal value is converted to floating point but it cannot be represented exactly in the available number of bits. Question parts 06.1 and 06.2 use a normalised floating point representation with an box 8-bit mantissa and a 4-bit exponent, both stored using two’s complement. 6.4 Explain how the floating point representation used in Question parts 06.1 and 06.2 could be modified to represent numbers more precisely, without changing the total number of bits used to represent a number. [1 mark]