Boolean logic – IGCSE Computer Science (0478)
11 questions · Clear filters
Question text
7
Consider the logic expression:
X = (A NAND NOT B) XOR (A NOR C)
(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.
A
B
X
C
[4]
(b) Complete the truth table from the given logic expression.
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]
© Cambridge University Press & Assessment 2026
Question text
9
Consider this logic expression:
Z = (A NAND B) XOR (NOT (NOT B NAND C))
(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.
A
B
Z
C
[5]
(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]
ĬÑĊ®Ġ´íÈõÏĪÅĊßù·þ×
Question text
7
Consider the logic expression:
X = (A XOR B) AND (NOT B AND 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
B
X
C
[4]
(b) Complete the truth table from the given logic expression.
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]
Question text
7
Consider this logic expression.
X = (A OR NOT B) AND (B AND NOT 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
B
X
C
[5]
(b) Complete the truth table from the given logic expression.
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]
Question text
3
(a) Tick (3) to show which logic gates will give an output of 1 for the given inputs A and B.
Inputs
AND
OR
NAND
NOR
XOR
A = 1
B = 1
A = 0
B = 0
A = 1
B = 0
[3]
(b) Draw the logic circuit for the given logic statement:
X = (A XOR B) AND (B OR NOT C)
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
B
X
C
[4]
Question text
5
Computers use logic gates.
(a) State the single logic gate that produces each truth table.
Truth table
Logic gate
A
B
Output
0
0
1
0
1
1
…
1
0
1
1
1
0
A
B
Output
0
0
0
0
1
1
…
1
0
1
1
1
0
A
B
Output
0
0
1
0
1
0
…
1
0
0
1
1
0
[3]
(b) An aeroplane has a warning system that monitors the height of the aeroplane above the
ground, whether the aeroplane is ascending or descending, and the speed of the aeroplane.
Input
Binary value
Condition
1
Height is less than 500 metres
Height
(H)
0
Height is greater than or equal to 500 metres
Ascending or
1
Aeroplane is ascending or in level flight
Descending
0
Aeroplane is descending
(A)
1
Speed is less than or equal to 470 knots
Speed
(S)
0
Speed is greater than 470 knots
The warning system will produce an output of 1 that will sound an alarm (W) when either of
these conditions apply:
Height is less than 500 metres and the aeroplane is descending
or
The aeroplane is descending and speed is greater than 470 knots
Draw a logic circuit to represent the warning system.
H
A
W
S
[5]
Question text
6
(a) Complete the truth table for the given logic circuit.
Do not attempt to simplify the logic circuit.
A
B
X
C
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]
(b) A water control system uses a switch and two pressure sensors.
The outputs of the switch and sensors are shown in the table.
Sensor or Switch
Output of 1
Output of 0
Switch
On
Off
(S1)
Pressure Sensor
>= 3
< 3
(P1)
Pressure Sensor
>= 3
< 3
(P2)
Create a logic circuit that will produce an output (X) of 1 when:
The switch S1 is on
and
either P1 is less than 3 or P2 is less than 3, but not both.
All logic gates used must have a maximum of two inputs.
S1
P1
X
P2
[4]
Question text
5
Consider the following logic statement:
X = 1 if ((A is 1 NAND C is 1) NOR A is NOT 1) OR (B is 1 AND C is NOT 1)
(a) Draw a logic circuit that represents the given logic statement. Your logic gates must have a
maximum of two inputs. Do not simplify the logic statement.
A
B
X
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]
Question text
7
(a) For this logic circuit:
A
X
B
C
Complete the truth table.
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]
(b) For this logic statement:
X = 1 if (B is 1 OR C is NOT 1) AND ((A is NOT 1) AND (B is 1 OR C is 1))
Draw a logic circuit.
A
B
X
C
[6]
(c) Complete the truth table for the logic statement given in part (b).
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]
Question text
2
The diagram below shows five logic gate symbols and five names.
Draw a line between each logic gate symbol and its correct name.
Logic Gate Symbol
Name
AND
NOT
NOR
XOR
NAND
[4]
Question text
14 A system controls the flow of vehicles through a barrier based on three lights, A, B and C.
When a light is red, the signal is zero. When a light is green, the signal is one.
The barrier will open when the output X is one.
The barrier opens if either:
light A is red and lights B and C are both green
•
or
light A is green and lights B and C are both red
•
(a) Design a logic circuit for the system.
A
B
X
C
[5]
(b) Complete the truth table for the system given at the start of Question 14.
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]
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 International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local