Boolean logic and logic circuits – O Level Computer Science (2210)

20 questions · page 1 of 2 · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
2210/22/O/N/25 · Question 6Oct/Nov 2025Paper 228 marks
Loading question…
Question text

6
Consider the logic expression:
X = (J XOR NOT K) NAND NOT L
(a) Draw a logic circuit for the logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify the logic expression.
J
K
X
L
[4]
(b) Complete the truth table for the given logic expression.
Working space
J
K
L
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊßüµĀ×

2
2210/23/O/N/25 · Question 4Oct/Nov 2025Paper 2314 marks
Loading question…
Question text

4
(a) Tickets for a theme park are booked online. An adult ticket costs $12.99 and a child ticket
costs $7.99. A booking fee of $1.99 is added to the total cost of each booking.
Write an algorithm in pseudocode to:
•
input the number of adult tickets for a booking
•
input the number of child tickets for a booking
•
calculate and output the total cost of the booking using an appropriate message.
…
…
…
…
…
…
…
… [4]
(b) Each booking must have at least one adult ticket.
Explain how the algorithm could be changed to repeatedly ask for the number of adult tickets
if the number input is less than 1.
Any code used must be fully explained.
…
…
…
…
…
…
…
… [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊßù·þ×
,
,
(c) The theme park has rules for a person to be able to go on a ride.
A person can go on a ride (X = 1) only if they:
•
are 1.4 metres tall or over
•
are 12 years old or over
•
do not have a medical condition.
Input
Description
Binary value
under 1.4 metres
0
A
1.4 metres or over
1
under 12 years old
0
B
12 years old or over
1
does not have a medical condition
0
C
has a medical condition
1
(i)
Write the logic expression for this problem.
X = … [2]
(ii)
Complete the truth table for this problem.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÍĊ®Ġ´íÈõÏĪÅĊÝû·Ā×

3
2210/22/O/N/24 · Question 9Oct/Nov 2024Paper 228 marks
Loading question…
Question text

9
Consider the logic expression:
X = (NOT P OR Q) NAND (Q XOR R)
(a) Draw a logic circuit for this logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify the logic expression.
P
Q
X
R
[4]
(b) Complete the truth table for the given logic expression.
Working space
P
Q
R
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊßù¶Ā×

Advertisement
4
2210/23/O/N/24 · Question 3Oct/Nov 2024Paper 234 marks
Loading question…
Question text

3
Four logic gates and five logic gate symbols are shown.
Draw one line to link each logic gate to its correct symbol. Not all logic gate symbols will be used.
Logic gate symbol
Logic gate
AND
NAND
NOR
XOR
[4]
ĬÍĊ®Ġ´íÈõÏĪÅĊÝú·þ×

5
2210/23/O/N/24 · Question 8Oct/Nov 2024Paper 234 marks
Loading question…
Question text

8
A logic circuit is to be built to control the automatic opening of a window. The window W opens if
the temperature T is too high, the heater H is off, and the air conditioning A is off.
air conditioning off
0
air conditioning A
air conditioning on
1
not too high
0
temperature T
too high
1
heater off
0
heater H
heater on
1
window closed
0
window W
window open
1
Complete the truth table for this problem.
A
T
H
W
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞü¶þ×

6
2210/22/O/N/23 · Question 9Oct/Nov 2023Paper 228 marks
Loading question…
Question text

9
Consider the logic expression:
Z = (A NAND B) OR NOT (B XOR C)
(a) Draw a logic circuit for this logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify this logic expression.
A
Z
B
C
[4]
(b) Complete the truth table from the given logic expression.
Working space
A
B
C
Z
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]

7
2210/23/O/N/23 · Question 6Oct/Nov 2023Paper 2311 marks
Loading question…
Question text

6
There are three descriptions of logic gates. Each logic gate has two inputs A and B with one
output X.
Identify each logic gate.
Complete a truth table for each logic gate.
(a) The only time the output is 1 is when both inputs are 1.
A
B
X
Logic gate …
0
0
Complete the truth table for this description.
0
1
1
0
1
1
[2]
(b) The output is 1 when both inputs are different.
A
B
X
Logic gate …
0
0
Complete the truth table for this description.
0
1
1
0
1
1
[2]
(c) The only time the output is 1 is when both inputs are 0.
A
B
X
Logic gate …
0
0
Complete the truth table for this description.
0
1
1
0
1
1
[2]
(d) Consider this logic expression:
X = (NOT A OR NOT B) OR NOT C
Draw a logic circuit for this logic expression. Each logic gate must have a maximum of two
inputs. Do not attempt to simplify this logic expression.
A
B
X
C
[5]

8
2210/12/O/N/22 · Question 7Oct/Nov 2022Paper 126 marks
Loading question…
Question text

7
NAND, OR and XOR are three types of logic gate.
(a) Four statements are shown about the logic gates.
Tick (✓) to show which statements apply to each logic gate. Some statements may apply to
more than one logic gate.
NAND
OR
XOR
Statement
(✓)
(✓)
(✓)
if both inputs are 1, the output is 1
if both inputs are different from each other, the output is 1
if both inputs are 0, the output is 0
if both inputs are the same as each other, the output is always 0
[4]
(b) NAND, OR, XOR, NOR and NOT are all examples of logic gates.
State the name of one other logic gate and complete its truth table.
Logic gate …
Truth table:
A
B
Output
0
0
0
1
1
0
1
1
[2]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge

Advertisement
9
2210/13/O/N/22 · Question 5Oct/Nov 2022Paper 1310 marks
Loading question…
Question text

5
Consider the logic statement:
X = ((((B AND C) OR NOT C) NOR B) XOR NOT A)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
X
B
C
[6]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]

10
2210/12/O/N/21 · Question 11Oct/Nov 2021Paper 1211 marks
Loading question…
Question text

11
Consider the following logic statement:
X = (((A AND B) OR (NOT (B OR C))) NAND C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
B
X
C
[5]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(c) Identify two logic gates that are not included in the given logic statement.
Logic gate 1 …
Logic gate 2 …
[2]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of

11
2210/12/O/N/20 · Question 4Oct/Nov 2020Paper 128 marks
Loading question…
Question text

4
Consider the logic statement:
X = (((A NAND B) NOR (B AND C)) OR C)
(a) Draw a logic circuit to match the given logic statement.
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
A
B
X
C
[4]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]

12
2210/13/O/N/20 · Question 10Oct/Nov 2020Paper 138 marks
Loading question…
Question text

10 Consider the following logic statement:
X = ((B AND NOT A) XOR (A OR C))
(a) Draw a logic circuit to match the given logic statement.
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
A
B
X
C
[4]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]

13
2210/12/O/N/19 · Question 8Oct/Nov 2019Paper 127 marks
Loading question…
Question text

8
Consider the logic circuit:
A
X
B
C
(a) Write a logic statement to match the given logic circuit.
… [3]
(b) Complete the truth table for the given logic circuit.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]

Advertisement
14
2210/13/O/N/19 · Question 4Oct/Nov 2019Paper 1314 marks
Loading question…
Question text

4
A factory that manufactures cleaning products has a system that monitors conditions throughout
the manufacturing process.
The inputs to the system are:
Input
Binary value
Condition
1
pH > 7
A
0
pH < = 7
1
Temperature < 35 °C
T
0
Temperature > = 35 °C
1
Pressure > = 80 %
P
0
Pressure < 80 %
(a) The system will sound an alarm (X) when certain conditions are detected.
The alarm will sound when:
•
The pressure > = 80 % and the temperature > = 35 °C
or
•
The temperature < 35 °C and the pH > 7
Draw a logic circuit to represent the alarm system in the factory. Each logic gate must have a
maximum of two inputs.
A
T
X
P
[4]
(b) Complete the truth table for the given logic problem.
Working space
A
T
P
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(c) A sensor and a microprocessor are used to monitor the pH of the cleaning products. The
system records each reading that is taken. If the reading is greater than 7 a warning message
is displayed on a monitor.
Explain how the sensor and microprocessor are used in the system.
…
…
…
…
…
…
…
…
…
…
…
… [6]

15
2210/12/O/N/18 · Question 3Oct/Nov 2018Paper 125 marks
Loading question…
Question text

3
A greenhouse uses a system to monitor the conditions that plants need to grow.
The inputs to the system are:
Binary
Input
Condition
value
1
Window is open
W
0
Window is closed
1
Temperature >=26 °C
T
0
Temperature <26 °C
1
Humidity >=50%
H
0
Humidity <50%
The system will sound an alarm when certain conditions are detected.
Alarm (X) will sound (=1) when:
window is closed and temperature >=26 °C
or
temperature <26 °C and humidity >=50%
Draw a logic circuit to represent the system.
W
T
X
H
[5]

Advertisement