Question 2

AQA Computer Science November 2020 Paper 2 (7517/2)A level12 marks

On the specification

2.1
3.5 Fundamentals of data representation
2.2
3.5 Fundamentals of data representation
2.3
3.5 Fundamentals of data representation
2.4
3.5 Fundamentals of data representation
2.5
3.5 Fundamentals of data representation
Question text

2 box Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement. 2.1 Non-integer values such as -1.65 and 23/1068 can be represented by a computer using a fixed point or a floating point system. State one advantage of using a floating point system over a fixed point system and one advantage of using a fixed point system over a floating point system. You should assume that the two systems use the same number of bits to store a value. [2 marks] Advantage of floating point Advantage of fixed point 2.2 The following is a floating point representation of a number: Calculate the decimal equivalent of the number. Express your answer to at least four decimal places or as a fraction. You should show your working. [2 marks] Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation box with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement. 2.3 Write the normalised floating point representation of the decimal value 1632 in the boxes below. You should show your working. [3 marks] Questions 02.2, 02.3, 02.4 and 02.5 use a normalised floating point representation box with a 7-bit mantissa and a 5-bit exponent, both stored using two’s complement. 2.4 State, in decimal, the highest (most positive) and lowest (most negative) values that could be represented by this floating point system. You should show your working. [3 marks] Highest value Lowest value 2.5 When the decimal value 28.25 is converted into binary using this floating point system, a rounding error occurs. Explain: • why a rounding error has occurred, and • what the system might do when the value 28.25 is converted into binary. [2 marks]