ch12 - Binary 2
ch12 - Binary 2
ch12 - Binary 2
Chapter 12 - Binary
1
Sayar Wai Phyo Aung Edexcel CS Past Paper
Questions
Q1.
Bit patterns can be used to represent the different states of an embedded system. These bits can be
manipulated by several different operations.
Identify the result of applying a logical shift left by 3 to the 8-bit binary number 0101 0101.
(1)
A 1010 1111
B 1010 1000
C 0100 0100
D 1010 1010
Q2.
Describe the result of carrying out an arithmetic shift right, one place, to an 8-bit binary integer.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q3.
Q4.
(i) Draw an × on the graph to plot the value of the 3000th sample.
(2)
3
Sayar Wai Phyo Aung Edexcel CS Past Paper
(ii) State the reason why decreasing the sample interval improves the digital representation of a sound
wave.
(1)
.............................................................................................................................................
.............................................................................................................................................
Q5.
4
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q6.
8-bit two's complement is used to represent the denary numbers -8 and -1.
Complete the table to show the binary addition on these two negative numbers.
(2)
Q7.
Data
Complete the table to show the result of 1001 0110 + 0101 0001
(2)
5
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q8.
Complete the table to show the result of the 8-bit binary addition.
(2)
Q9.
0011 1010
1011 0011
(ii) The most significant bit (MSB) of the first binary number is changed.
Explain the effect of this change on the result of the addition.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q10.
Complete the two tables and use the information, along with the image data, to show the image in the
grid.
(6)
Image data:
Use B for black, R for red, G for green, and W for white.
7
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q11.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
8
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q12.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q13.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q14.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q15.
Q16.
10
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q17.
Data
Convert the denary number –33 to 8-bit binary using two's complement.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q18.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
11
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q19.
Convert the hexadecimal number 12 to binary and the result from binary to denary.
(2)
Binary
.............................................................................................................................................
.............................................................................................................................................
Denary
.............................................................................................................................................
.............................................................................................................................................
Q20.
Data
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q21.
Convert the hexadecimal number E3 to binary and the result from binary to denary.
(2)
12
Sayar Wai Phyo Aung Edexcel CS Past Paper
Binary
.............................................................................................................................................
.............................................................................................................................................
Denary
.............................................................................................................................................
.............................................................................................................................................
Q22.
(i) The speed limit for some roads is 60 miles per hour.
Convert the denary number 60 to 8-bit binary.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
13
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q23.
One example of an embedded system in a car is windscreen wipers that automatically come on when it
rains.
(i) Explain how an embedded system could control the headlights of a car.
(3)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
14
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q24.
Explain the reason why at least nine bits are needed to store 300 different binary patterns.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q25.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q26.
Explain why it is not possible to apply two's complement to the 8-bit unsigned integer 1111 1101.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q27.
Data
.............................................................................................................................................
Q28.
Give the result of applying a logical shift left by 2 to the 8-bit binary pattern 00110110.
(1)
.............................................................................................................................................
Q29.
The images are to be displayed with a background of hex colour code BB4A0F.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q30.
Explain why hexadecimal notation is preferred to binary notation when specifying screen colours.
(2)
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Q31.
Answer the question with a cross in the box you think is correct . If you change your mind
about an answer, put a line through the box and then mark your new answer with a cross .
Data
Identify the 4-bit binary addition that will result in an overflow error.
(1)
A 1001+1000
B 0011+1001
C 1000+0110
D 0111+1000
Q32.
Answer the question with a cross in the box you think is correct . If you change your mind
about an answer, put a line through the box and then mark your new answer with a cross .
Data
Identify the maximum number of values that can be represented with 5 bits.
17
Sayar Wai Phyo Aung Edexcel CS Past Paper
(1)
A 5
B 16
C 25
D 32
Q33.
Data
Identify the result of a single logical shift left on the 8-bit binary pattern 0101 0101.
(1)
A Addition
B Division
C Multiplication
D Subtraction
Q34.
Identify the reason why unsigned integers should be used to record the number of cars entering and
leaving the car park, rather than signed integers.
(1)
A Unsigned integers are more accurate
B Unsigned integers cannot have overflow errors
C Unsigned integers store more positive values
D Unsigned integers do not use a parity bit
18
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q35.
(ii) Compare two features of the two's complement representation of negative numbers with the
sign-magnitude representation.
(2)
1 ..........................................................................................................................................
.............................................................................................................................................
2 ..........................................................................................................................................
.............................................................................................................................................
(iii) Two 8-bit binary numbers, 1011 0100 and 1001 0001, are added.
Identify the letter that represents the true statement about the result.
(1)
A 1100 0101
B 0100 0101
C Both A and B are accurate
D None of the above are accurate
Q36.
Binary strings can be used to represent numbers, text, and images.
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
Answer the question with a cross in the box you think is correct . If you change your mind
about an answer, put a line through the box and then mark your new answer with a cross .
Data
(i) Identify the reason why an unsigned integer should be used to record
the number of cars entering the car park, rather than a signed integer.
(1)
A Unsigned integers are more accurate
B Unsigned integers cannot have overflow errors
C Unsigned integers store more positive values
D Unsigned integers do not use a parity bit
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
(Total for question = 4 mark)
20
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q38.
Complete the table to calculate adding 12 in denary to −11 in denary using 8-bit notation and two's
complement.
(3)
21
Sayar Wai Phyo Aung Edexcel CS Past Paper
Mark Scheme
Q1.
Q2.
Q3.
22
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q4.
Q5.
23
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q6.
Q7.
Q8.
24
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q9.
Q10.
25
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q11.
Q12.
Q13.
26
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q14.
Q15.
Q16.
Q17.
27
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q18.
Q19.
Q20.
Q21.
28
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q22.
Q23.
29
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q24.
Q25.
Q26.
30
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q27.
Q28.
Q29.
Q30.
31
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q31.
Q32.
32
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q33.
Q34.
Q35.
33
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q36.
34
Sayar Wai Phyo Aung Edexcel CS Past Paper
Q37.
Q38.
35