IGCSE · Computer Science 0478 · Databases & logic

Logic gates & circuits: IGCSE Computer Science questions with answers

Free Logic gates & circuits questions for IGCSE Computer Science (0478), part of Databases & logic. Each question has the answer and the marking points an examiner would look for.

Generate a full Logic Gates & Circuits worksheet →All Databases & logic questions

Logic gates & circuits practice questions

Question 1Structured · 6 marks

Fig. 1.1 shows a logic circuit.

ABCX
Fig. 1.1
(a)

Complete the truth table for this logic circuit.

ABCX
000
001
010
011
100
101
110
111
Table 1.1
[4]
(b)

Write a logic expression for this circuit.

[2]
Show answers and mark scheme
PartAnswer and marking pointsMarks
(a)X column: 01101010
8 correct outputs B4
B3 for 6–7 correct, B2 for 4–5, B1 for 2–3
4
(b)X = (A OR B) XOR C
(A OR B) B1
XOR C B1
2
Question 2Structured · 6 marks
(a)

Complete the truth table for the logic expression
X = (NOT A AND B) NOR C

ABCX
000
001
010
011
100
101
110
111
Table 2.1
[4]
(b)

State how many logic gates are needed to draw this circuit, and name them.

[2]
Show answers and mark scheme
PartAnswer and marking pointsMarks
(a)X column: 10001010
8 correct outputs B4
B3 for 6–7 correct, B2 for 4–5, B1 for 2–3
4
(b)3: NOT, AND, NOR
3 gates B1
NOT, AND and NOR B1
2
Question 3Structured · 1 mark

State what is meant by the term NAND gate.

[1]
Show answers and mark scheme
PartAnswer and marking pointsMarks
A gate whose output is 0 only when both inputs are 1
A gate whose output is 0 only when both inputs are 1 B1
1
Question 4Structured · 6 marks
(a)

Complete the truth table for the logic expression
X = (NOT A OR B) AND C

ABCX
000
001
010
011
100
101
110
111
Table 4.1
[4]
(b)

State how many logic gates are needed to draw this circuit, and name them.

[2]
Show answers and mark scheme
PartAnswer and marking pointsMarks
(a)X column: 01010001
8 correct outputs B4
B3 for 6–7 correct, B2 for 4–5, B1 for 2–3
4
(b)3: NOT, OR, AND
3 gates B1
NOT, OR and AND B1
2
Question 5Structured · 6 marks
(a)

Complete the truth table for the logic expression
X = (NOT A NOR B) NAND C

ABCX
000
001
010
011
100
101
110
111
Table 5.1
[4]
(b)

State how many logic gates are needed to draw this circuit, and name them.

[2]
Show answers and mark scheme
PartAnswer and marking pointsMarks
(a)X column: 11111011
8 correct outputs B4
B3 for 6–7 correct, B2 for 4–5, B1 for 2–3
4
(b)3: NOT, NOR, NAND
3 gates B1
NOT, NOR and NAND B1
2
Question 6Structured · 6 marks
(a)

Complete the truth table for the logic expression
X = (A NAND B) AND C

ABCX
000
001
010
011
100
101
110
111
Table 6.1
[4]
(b)

State how many logic gates are needed to draw this circuit, and name them.

[2]
Show answers and mark scheme
PartAnswer and marking pointsMarks
(a)X column: 01010100
8 correct outputs B4
B3 for 6–7 correct, B2 for 4–5, B1 for 2–3
4
(b)2: NAND, AND
2 gates B1
NAND and AND B1
2

More Databases & logic questions

Want a mentor, not just a paper?

Riyaz Shaikh has mentored IGCSE, IB and A Level students for 15+ years, one-on-one, online and in Mumbai. The hardest questions on this site are the ones he uses to find a student's weak points.

Meet Riyaz →

Original Cambridge-style practice questions written for mentorriyaz.in. These are not Cambridge past paper questions, and this site is not affiliated with or endorsed by Cambridge University Press & Assessment. Updated 2026-11-04. Paper generator · mentorriyaz.in