Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ch12 - Binary 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 35

Sayar Wai Phyo Aung Edexcel CS Past Paper

Chapter 12 - Binary

1
Sayar Wai Phyo Aung Edexcel CS Past Paper

Questions
Q1.

Modern society depends on many different embedded systems to function properly.

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

(Total for question = 1 mark)

Q2.

Binary strings can be used to represent numbers, text, and images.

Describe the result of carrying out an arithmetic shift right, one place, to an 8-bit binary integer.
(2)

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q3.

In arithmetic, subtraction can be done by adding a negative number.

Calculate 18 − 8, using 8-bit binary and two's complement.

Convert the result back to denary.


2
Sayar Wai Phyo Aung Edexcel CS Past Paper

Show all your working.


(4)

(Total for question = 4 marks)

Q4.

A sound is recorded with these settings:

• sample rate: 24 kHz


• bit depth: 4-bit.

Two's complement is used to represent sample values.

The 3000th sample of the sound is represented in binary as 1111

(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)
.............................................................................................................................................

.............................................................................................................................................

(Total for question = 3 marks)

Q5.

Complete the table.


(2)

(Total for question = 2 marks)

4
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q6.

A computer operates as a binary digital device.

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)

(Total for question = 2 marks)

Q7.

Data

Complete the table to show the result of 1001 0110 + 0101 0001
(2)

(Total for question = 2 marks)

5
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q8.

Complete the table to show the result of the 8-bit binary addition.
(2)

(Total for question = 2 marks)

Q9.

Computers store and manipulate data.

The addition of these 8-bit binary numbers is required.

0011 1010

1011 0011

(i) Complete the table to show the result of the addition.


(2)

(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)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 4 marks)


6
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q10.

Information about a bitmap image is described in two tables.

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.

You may not need all the squares in the grid.

7
Sayar Wai Phyo Aung Edexcel CS Past Paper

(Total for question = 6 marks)

Q11.

An online quiz asks students questions about computer science topics.

One of the colours used in an image is 'cadet blue'.

'Cadet blue' in binary is 0101 1111 1001 1110 1010 0000

Convert 0101 1111 1001 1110 1010 0000 to hexadecimal.


(3)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 3 marks)

8
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q12.

(i) Convert the binary number 0011 1101 to hexadecimal.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(ii) Explain why hexadecimal notation is used.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 4 marks)

Q13.

Computers carry out mathematical operations.

(i) Convert the binary number 00111101 to hexadecimal.


(2)
.............................................................................................................................................

.............................................................................................................................................

(ii) Explain why hexadecimal notation is used.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 4 marks)


9
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q14.

Convert the binary number 0100 1010 to hexadecimal.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q15.

Computers store and manipulate data.

Convert the binary number 1010 1101 to hexadecimal.


(1)
.............................................................................................................................................

(Total for question = 1 mark)

Q16.

A computer game designer is creating a new game.

Colours in the game are represented in hexadecimal.

Convert the binary numbers in this table to hexadecimal.


(3)

10
Sayar Wai Phyo Aung Edexcel CS Past Paper

(Total for question = 3 marks)

Q17.

Data

Convert the denary number –33 to 8-bit binary using two's complement.
(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q18.

Convert the denary number 82 to 8-bit binary.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

11
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q19.

A computer game designer is creating a new game.

Convert the hexadecimal number 12 to binary and the result from binary to denary.
(2)
Binary

.............................................................................................................................................

.............................................................................................................................................

Denary

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q20.

Data

Convert the hexadecimal number 2A to 8-bit binary.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q21.

Computers store and manipulate data.

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

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q22.

A car has many embedded systems.

An embedded system processes binary numbers.

(i) The speed limit for some roads is 60 miles per hour.
Convert the denary number 60 to 8-bit binary.
(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(ii) The car displays speed limits in denary.


Convert the 8-bit binary number 0010 0011 to denary.
(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(iii) The embedded system adds numbers in binary.


Complete the table to show the result of 0010 0011 + 0100 1010
(2)

13
Sayar Wai Phyo Aung Edexcel CS Past Paper

(Total for question = 6 marks)

Q23.

A car has many embedded systems.

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)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(ii) A bit can have two different states.


State how many bits are needed to represent the 26 capital letters A to Z.
Give a reason for your answer.
(2)
Number of bits
.............................................................................................................................................
Reason
.............................................................................................................................................

.............................................................................................................................................

(Total for question = 5 marks)

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)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q25.

A computer operates as a binary digital device.

Explain why binary is used to represent computer data.


(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q26.

A computer operates as a binary digital device.

Explain why it is not possible to apply two's complement to the 8-bit unsigned integer 1111 1101.
(2)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)


15
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q27.

Data

Give the 8-bit binary representation of the denary number 82.


(2)
.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

Q28.

Computers carry out mathematical operations.

Give the result of applying a logical shift left by 2 to the 8-bit binary pattern 00110110.
(1)
.............................................................................................................................................

(Total for question = 1 mark)

Q29.

A landscape photographer wishes to publish a series of preview images online.

The images are to be displayed with a background of hex colour code BB4A0F.

Convert the background hex code into a binary number.


(2)

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)


16
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q30.

Explain why hexadecimal notation is preferred to binary notation when specifying screen colours.
(2)

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)

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

(Total for question = 1 mark)

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

(Total for question = 1 mark)

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

(Total for question = 1 mark)

Q34.

A car park uses a number plate recognition system.

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

(Total for question = 1 mark)

18
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q35.

Different types of data can be represented digitally.

Negative numbers can be represented digitally.


(i) Complete the table to show how +6 is represented in binary and how -6 is represented in two's
complement.
Space for working out.
(2)

(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

(Total for question = 5 marks)


19
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q36.
Binary strings can be used to represent numbers, text, and images.

Explain the concept of overflow in relation to binary addition.


(2)

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

(Total for question = 2 marks)


Q37.

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

A car park uses a number-plate recognition system.

(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

(ii) The system stores images of car number plates.


Construct an expression to show how many bytes there are in 6 tebibytes.
You do not need to carry out the calculation.
(3)
.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................

.............................................................................................................................................
(Total for question = 4 mark)

20
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q38.

Binary strings can be used to represent numbers, text, and images.

Complete the table to calculate adding 12 in denary to −11 in denary using 8-bit notation and two's
complement.
(3)

(Total for question = 3 marks)

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

You might also like