Question 8
AQA Computer Science Specimen Paper 2 (7517/2)A level10 marks
On the specification
- 8.1
- 4.5 Fundamentals of data representation
- 8.2
- 4.5 Fundamentals of data representation
- 8.3
- 4.5 Fundamentals of data representation
- 8.4
- 4.5 Fundamentals of data representation
Question text
8 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. Four bit patterns that are stored in this computer’s memory are listed in Figure 6 and are labelled A, B, C, D. Three of the bit patterns are valid floating point numbers and one is not. Figure 6 A 0 1 0 1 1 1 0 0 1 0 1 0 Mantissa Exponent B 0 0 0 1 1 0 1 0 0 1 0 1 Mantissa Exponent C 1 0 0 0 0 0 0 0 0 1 1 1 Mantissa Exponent D 1 0 1 1 1 1 1 1 1 0 0 0 Mantissa Exponent 8.1 Complete Table 3. In the Correct letter (A-D) column shade the appropriate lozenge A, B, C or D to indicate which bit pattern in Figure 6 is an example of the type of value described in the Value description column. Do not use the same letter more than once. [3 marks] Table 3 Value description Correct letter (A-D) A positive normalised value A B C D The most negative value that can be represented A B C D A value that is not valid in the representation because it is not A B C D normalised 8.2 The following is a floating point representation of a number: 1 0 1 1 0 0 0 0 1 0 1 Mantissa Exponent Calculate the decimal equivalent of the number. Show how you have arrived at your answer. [2 marks] Answer: 8.3 Write the normalised floating point representation of the negative decimal value -6.75 in the boxes below. Show how you have arrived at your answer. [3 marks] Answer: Mantissa Exponent An alternative two's complement format representation is proposed. In the alternative representation 6 bits will be used to store the mantissa and 6 bits will be used to store the exponent. Existing Representation (8-bit mantissa, 4-bit exponent): Mantissa Exponent Proposed Alternative Representation (6-bit mantissa, 6-bit exponent): Mantissa Exponent 8.4 Explain the effects of using the proposed alternative representation instead of the existing representation. [2 marks]