Boolean logic – IGCSE Computer Science (0478)

34 questions · page 1 of 3 · Clear filters

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
0478/21/M/J/26 · Question 8May/June 2026Paper 217 marks
Loading question…
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

2
0478/22/M/J/26 · Question 8May/June 2026Paper 229 marks
Loading question…
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
ĬÓĊ®Ġ´íÈõÏĪÅĊßú·þ×

3
0478/23/M/J/26 · Question 7May/June 2026Paper 238 marks
Loading question…
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

Advertisement
4
0478/21/M/J/25 · Question 7May/June 2025Paper 218 marks
Loading question…
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]
ĬÓĊ®Ġ´íÈõÏĪÅĊàù¶þ×

5
0478/22/M/J/25 · Question 8May/June 2025Paper 228 marks
Loading question…
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]
ĬÓĊ®Ġ´íÈõÏĪÅĊßû·þ×

6
0478/23/M/J/25 · Question 7May/June 2025Paper 238 marks
Loading question…
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]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝü¸þ×

7
0478/21/M/J/24 · Question 8May/June 2024Paper 219 marks
Loading question…
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]

8
0478/22/M/J/24 · Question 2May/June 2024Paper 224 marks
Loading question…
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]

Advertisement
9
0478/22/M/J/24 · Question 8May/June 2024Paper 227 marks
Loading question…
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]

10
0478/23/M/J/24 · Question 2May/June 2024Paper 238 marks
Loading question…
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]

11
0478/21/M/J/23 · Question 9May/June 2023Paper 218 marks
Loading question…
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]

12
0478/22/M/J/23 · Question 2May/June 2023Paper 224 marks
Loading question…
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]

13
0478/22/M/J/23 · Question 8May/June 2023Paper 224 marks
Loading question…
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]

Advertisement
14
0478/23/M/J/23 · Question 8May/June 2023Paper 238 marks
Loading question…
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]

15
0478/11/M/J/22 · Question 8May/June 2022Paper 1110 marks
Loading question…
Question text

8
Consider the following logic statement:
X = (((A AND NOT B) OR (NOT (B NOR C))) AND 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
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]

Advertisement