Binary Revision Past Paper Questions
Binary Revision Past Paper Questions
The figure below shows a number stored using a fixed point representation and two’s
complement, with six bits before and four bits after the binary point.
= -19.3125
Answer: -19.3125
(Total 2 marks)
Q2.
State two reasons why values stored using a floating point representation are usually
stored in normalised form.
(Total 2 marks)
Q3.
Use a normalised floating point representation with an 8-bit mantissa and a 4-bit
exponent, both stored using two’s complement.
0.00000001101100
27/4096
Answer: 27/4096
Page 1 of 7
(Total 2 marks)
Q4.
Use a normalised floating point representation with an 8-bit mantissa and a 4-bit
exponent, both stored using two’s complement.
Write the normalised floating point representation of the decimal value –23.25 in the
boxes below.
11101000.11
1.0100011 0101
Answer
(Total 3 marks)
Q5.
Use a normalised floating point representation with an 8-bit mantissa and a 4-bit
exponent, both stored using two’s complement.
The figure below shows the closest possible representation of the decimal number –
0.22558594(actual number we want to represent) in this floating point system.
By converting this number back to decimal it can be seen that the actual value stored is –
0.2265625(closest value possible)
Calculate the relative error that has occurred when representing –0.22558594
-0.43%
Answer: -0.43%
(Total 2 marks)
Q6.
Use binary addition in 8-bit two’s complement to perform the subtraction:
Page 2 of 7
18 – 72
You must show both your working and your final answer in binary.
0001 0010
1011 1000
1100 1010
Q7.
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.
(a) Four-bit patterns that are stored in this computer’s memory are listed in Figure 1
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 1
Complete the table below. In the Correct letter (A–D) column write the appropriate
letter from A to D to indicate which bit pattern in Figure 1 is an example of the type
of value described in the Value description column.
Page 3 of 7
A value that is not valid in the representation
C
because it is not normalised.
(3)
Figure 2
0110100.0
32 + 16 + 4
= 52
Answer: 52
(2)
In this floating point system, the closest possible representation of the decimal number
104.7 is shown in Figure 3.
Figure 3
By converting this number back to decimal it can be seen that the actual value stored is
105
(c) Calculate the absolute error that has occurred when representing 104.7 in
Figure 3.
(d) Calculate the relative error that has occurred when representing 104.7 in Figure 3.
(0.3/104.7) * 100
Answer: 0.29%
(1)
Page 4 of 7
(e) Explain why the relative error is usually considered to be a more important measure
of error than the absolute error.
The impact of an error depends on its size relative to the number that should be
represented. An absolute error is more significant the smaller that number is and
vice versa if the number is larger.
(0/1)
(Total 8 marks)
Q8.
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.
Can represent a wider range of numbers when using the same number of bits.
Simpler to calculate and process because the binary point is fixed in place and
does not have to be moved
(In a given number of bits) a fixed point system can represent (some) numbers
more precisely than a floating point system; A. “accurately” for “precision” as BOD
Q9.
This question uses a normalised floating point representation with a 7-bit mantissa and a
5-bit exponent, both stored using two’s complement.
Page 5 of 7
Express your answer to at least four decimal places or as a fraction. You should show
your working.
1.010100
1010.100
Answer: -11/2
(Total 2 marks)
Q10.
This question uses a normalised floating point representation with a 7-bit mantissa and a
5-bit exponent, both stored using two’s complement.
Write the normalised floating point representation of the decimal value 1632 in the boxes
below.
0 . 1 1 0 0 1 10 0 00
01010
Q11.
This question uses a normalised floating point representation with a 7-bit mantissa and a
5-bit exponent, both stored using two’s complement.
State, in decimal, the highest (most positive) and lowest (most negative) values that could
be represented by this floating point system.
0.111111 01111
1.000000 01111
(Total 3 marks)
Q12.
Page 6 of 7
This question uses a normalised floating point representation with a 7-bit mantissa and a
5-bit exponent, both stored using two’s complement.
When the decimal value 28.25 is converted into binary using this floating point system, a
rounding error occurs.
Explain:
Error occurred because there are not enough bits in the mantissa to accurate represent
28.25. System may assign bits from the exponent to the mantissa to increase accuracy
(Total 2 marks)
Page 7 of 7