Boolean logic – IGCSE Computer Science (0478)
14 questions · Clear filters
Question text
8
Consider the logic circuit:
A
B
X
C
(a) Write the logic expression for 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]
© Cambridge University Press & Assessment 2026
Question text
8
Consider the logic expression:
Z = NOT (B OR NOT C) XOR (A 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]
© Cambridge University Press & Assessment 2026
ĬÓĊ®Ġ´íÈõÏĪÅĊßú·þ×
Question text
7
Consider the logic expression:
X is 1 if (P = NOT 1 AND Q = 1) XOR (Q = 1 NOR R = 1)
(a) Draw a logic circuit for the given logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify this logic expression.
P
Q
X
R
[4]
(b) Complete the truth table from 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]
© Cambridge University Press & Assessment 2026
Question text
7
Consider the logic expression:
X = (A AND B) XOR (B OR NOT 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 for 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
8
(a) Draw the symbol for an XOR logic gate and complete the truth table for it.
XOR logic gate symbol:
Truth table:
A
B
X
0
0
0
1
1
0
1
1
[2]
ĬÑĊ®Ġ´íÈõÏĪÅĊßù·þ×
,
,
(b) Consider the logic rules in the following table:
Input
Binary value
Description
0
operator not present
A
1
operator present
0
ignition key present
B
1
ignition key not present
0
operator code correct
C
1
operator code not correct
A crane is a machine with a long arm used to lift heavy objects. The crane will only move:
•
if the operator is present and
•
either the ignition key is present, or the operator code is correct.
The crane moving is represented by X = 1.
(i)
Write the logic expression for the crane moving.
X = … [2]
(ii)
Complete the truth table for the crane moving.
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) Draw the symbol for a NOR logic gate and complete the truth table for it.
NOR logic gate symbol:
Truth table:
A
B
Z
0
0
0
1
1
0
1
1
[2]
(b) Consider the rules given in the following table:
Input
Binary value
Description
0
dark
L
1
light
0
no motion detected
M
1
motion detected
0
no sound detected
S
1
sound detected
A security system uses sensors to sound an alarm if an intruder is detected.
The alarm sounding is represented by the output A = 1.
The alarm sounds if it is dark and if either motion or sound or both motion and sound are
detected.
ĬÑĊ®Ġ´íÈõÏĪÅĊÝú¸þ×
,
,
(i)
Write the logic expression for the security system.
A = …
… [2]
(ii)
Complete the truth table for the security system.
Working space
L
M
S
A
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
8
Consider the logic expression:
Z = (R OR NOT T) XOR (NOT S AND T)
(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.
R
S
Z
T
[5]
(b) Complete the truth table from the given logic expression.
Working space
R
S
T
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
2
Four logic functions and five standard symbols for logic gates are shown.
Draw one line to link each logic function to its standard symbol. Not all standard symbols will be
used.
Logic function
Standard symbol
AND
XOR
NAND
OR
[4]
Question text
8
A logic circuit is to be built to control the opening of a safe used to store money. There are two
keys, A and B, and a time switch C. The safe can only open if both keys are used and the time
switch is off.
not used
0
key A
used
1
not used
0
key B
used
1
switch off
0
time switch C
switch on
1
safe cannot open
0
safe X
safe can open
1
(a) Write the logic expression for this problem.
… [3]
(b) 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]
Question text
2
(a) Four logic gate symbols and five logic functions are shown.
Draw one line to link each logic gate symbol to the appropriate logic function.
Not all logic functions will be used.
Logic gate symbol
Logic function
AND
XOR
NOT
NAND
OR
[4]
(b) Complete the truth table for this logic circuit.
A
B
Z
C
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
9
Consider this logic expression.
Z = (NOT A OR B) AND (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
B
Z
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]
Question text
2
Four logic gates and five standard symbols for logic gates are shown.
Draw one line to link each logic gate to its standard symbol. Not all standard symbols will be used.
Logic gate
Standard symbol
AND
OR
NAND
NOT
[4]
Question text
8
Consider this logic expression.
X = (A OR B) AND (NOT B AND C)
Complete the truth table for this 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
8
Consider the logic expression:
Z is 1 if (A = 1 AND C = NOT 1) AND (B = 1 NOR C = 1)
(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
Z
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]