Floating-point Numbers, Representation & Manipulation (Cambridge (CIE) A Level Computer Science): Exam Questions

Exam code: 9618

1 hour21 questions
1a
3 marks

Numbers are stored in a computer using binary floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two’s complement form for both the mantissa and the exponent.

Calculate the normalised binary floating-point representation of +201.125 in this system.

Show your working.

Mantissa

Exponent

1b
3 marks

Calculate the denary value of the given normalised binary floating-point number.

Show your working.

Mantissa

1

0

1

0

1

1

0

0

1

1

Exponent

0

0

0

1

0

1

2a
2 marks

Numbers are stored in a computer using binary floating‑point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two’s complement form for both the mantissa and the exponent.

Calculate the denary value of the given normalised binary floating‑point number.

Show you working.

Mantissa

0

1

0

0

0

1

1

1

0

1

1

1

Exponent

0

1

1

1

2b
4 marks

Calculate the normalised binary floating‑point representation of – 49.1875 in this system.

Show your working.

Mantissa

Exponent

3a
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two’s complement form for both the mantissa and the exponent.

Calculate the denary value of the given normalised floating-point number.

Show your working.

Mantissa

0

1

0

0

1

1

1

1

0

0

Exponent

0

0

1

0

0

1

3b
3 marks

Calculate the normalised floating-point representation of –102.75 in this system. Show your working.

Mantissa

Exponent

4a
2 marks

Describe the effect of changing the allocation of bits used for the mantissa and for the exponent in a floating-point number with a fixed total number of bits.

4b
3 marks

Real numbers are stored in a computer, using floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two’s complement form for both the mantissa and exponent.

Calculate the normalised floating-point representation of +54.8125 in this system.

Show your working.

Mantissa

Exponent

5a
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two’s complement form for both the mantissa and the exponent.

Write the normalised floating-point representation of +65.25 in this system.

Show your working.

Mantissa

Exponent

5b
2 marks

Explain the problem that will occur in storing the normalised floating-point representation of +65.20 in this system.

6a
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two’s complement form for both the mantissa and the exponent.

Write the normalised floating-point representation of -96.75 in this system.

Show your working.

Mantissa

Exponent

6b
3 marks

Explain why a binary representation is sometimes only an approximation to the real number it represents.

7
2 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

A program stores the denary value +26.802734375. Written in binary, this value is 11010.110011011.

Describe the reason why this value cannot be stored accurately in this system.

8
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

The value +9.25 can be stored exactly in this system. The value +9.20 cannot.

Explain why.

9
4 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

A sensor reading has the denary value +86.4375. Written in binary, this value is 1010110.0111. The reading cannot be stored exactly in this system.

A programmer suggests changing the system so that the mantissa uses 12 bits and the exponent uses 4 bits, keeping the total of 16 bits unchanged.

Explain why the reading cannot be stored exactly in the original system, and what effect the programmer's change would have.

10
2 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

State the largest exponent and the smallest exponent, in denary, that can be stored in this system.

11
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Calculate the largest positive denary value and the most negative denary value that can be stored in this system.

Show your working.

12
4 marks

Two computer systems each store real numbers in a total of 16 bits, using floating-point representation with two's complement form for both the mantissa and the exponent. The systems allocate the 16 bits differently.

System

Bits for the mantissa

Bits for the exponent

X

8

8

Y

12

4

Explain the effect that this difference has on the numbers each system can store. Give the exponent range of each system in your answer.

13
2 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

A number is stored in this system with the following mantissa.

Mantissa

1

1

1

0

0

1

0

1

1

1

State why this number is not normalised, and state the first two bits that the mantissa of any normalised negative number must have.

14
3 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

A number is stored in this system as shown. The number is not normalised.

Mantissa

0

0

0

0

1

1

0

1

0

0

Exponent

0

0

0

1

1

1

Write the normalised floating-point representation of this number.

Show your working.

15
4 marks

Real numbers are stored in a computer system using floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

A negative number is stored in this system as shown.

Mantissa

1

1

1

0

1

1

0

0

0

0

Exponent

0

0

0

1

0

1

Explain why this number is not normalised, write its normalised representation, and explain what a computer system gains by storing floating-point numbers in normalised form.

16
2 marks

A computer system stores real numbers using binary floating-point representation with:

  • 8 bits for the mantissa

  • 8 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Write the normalised binary floating-point representation of +5.5 in this system.

Mantissa

Exponent

17
3 marks

A computer system stores real numbers using binary floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Calculate the normalised binary floating-point representation of -0.34375 in this system.

Show your working.

Mantissa

Exponent

18
4 marks

Two computer systems store real numbers using binary floating-point representation.

System 1 uses:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

System 2 uses:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Calculate the normalised binary floating-point representation of +45.5 in each of these two systems.

Show your working.

System 1 mantissa

System 1 exponent

System 2 mantissa

System 2 exponent

19
2 marks

A computer system stores real numbers using binary floating-point representation with:

  • 8 bits for the mantissa

  • 8 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Calculate the denary value of the given normalised binary floating-point number.

Show your working.

Mantissa

0

1

1

0

1

0

0

0

Exponent

0

0

0

0

0

1

0

0

20
3 marks

A computer system stores real numbers using binary floating-point representation with:

  • 10 bits for the mantissa

  • 6 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Calculate the denary value of the given normalised binary floating-point number.

Show your working.

Mantissa

1

0

1

1

0

0

0

0

0

0

Exponent

1

1

1

1

1

1

21
4 marks

A computer system stores real numbers using binary floating-point representation with:

  • 12 bits for the mantissa

  • 4 bits for the exponent

  • two's complement form for both the mantissa and the exponent.

Mantissa

1

0

0

1

1

0

1

0

0

0

0

0

Exponent

0

1

1

0

A student calculates the denary value of this number as -13. The student's answer is not correct.

Calculate the correct denary value of the number and identify the mistake the student has made.

Show your working.