📁 Topic 4 · 4.3 Logic Gates
4.3 Logic gates and truth tables
Edexcel 4CP0 · iGCSE Computer Science · ~12 min read
Notes

Logic Gates and Boolean Logic

Computers process data using logic gates — electronic components that perform Boolean operations. Each gate takes binary inputs (0 = FALSE, 1 = TRUE) and produces a single binary output. The Edexcel 4CP0 specification requires knowledge of three gates: AND, OR, and NOT.

AND Gate

Output is 1 only when ALL inputs are 1. If any input is 0, output is 0.

Expression: Q = A AND B

ABQ (A AND B)
000
010
100
111

Real-world analogy: A door opens only if both conditions are met (e.g. correct card AND correct PIN).

OR Gate

Output is 1 when at least one input is 1. Output is 0 only when ALL inputs are 0.

Expression: Q = A OR B

ABQ (A OR B)
000
011
101
111

Real-world analogy: An alarm triggers if either the window sensor OR the door sensor is triggered.

NOT Gate

The NOT gate has one input and inverts it. 1 becomes 0, and 0 becomes 1. Also called an inverter.

Expression: Q = NOT A

AQ (NOT A)
01
10

Real-world analogy: If a light is ON, NOT turns it OFF. If it is OFF, NOT turns it ON.

Combining Logic Gates

Gates can be combined into circuits. Work through each gate in sequence to find the final output.

Example: Q = (A AND B) OR (NOT C)

To complete the truth table: first evaluate A AND B, then evaluate NOT C, then OR the two results together.

ABCA AND BNOT CQ
000011
001000
010011
011000
100011
101000
110111
111101
📝 Exam Tip: For 3-input truth tables, there are always 2³ = 8 rows. Write inputs in binary counting order (000 to 111) to ensure all combinations are covered. Work left to right through intermediate columns before the final output. Note: NAND, NOR, and XOR are NOT in the Edexcel 4CP0 specification.
⚠️ Common Mistakes
  • Saying AND outputs 1 if any input is 1 — that is OR; AND requires ALL inputs to be 1
  • Missing rows in truth tables — for n inputs, always write 2ⁿ rows
  • Including NAND, NOR or XOR — these are NOT in the Edexcel 4CP0 spec
← 4.2e Input/Output Topic 4 · 4.3 Logic Gates Next: 4.4 Operating systems →
🔒
Pro Content
Subscribe to access all 47 Edexcel iGCSE lessons.
£7.99/month
or £59/year