REVISION GUIDE · IGCSE 0478
Logic gates and truth tables (IGCSE 0478)
All six gates on one page, how to build a three-input truth table without missing a row, and how to turn a written problem into a logic expression.
1. The six gates you need
Cambridge IGCSE 0478 uses six gates: NOT, AND, OR, NAND, NOR and XOR. Apart from NOT, every gate in the exam has two inputs. Learn this table until you can write it from memory.
| A | B | AND | OR | NAND | NOR | XOR |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
NOT has one input and flips it: NOT 0 = 1 and NOT 1 = 0. NAND and NOR are simply AND and OR followed by NOT, so their columns are the opposite of AND and OR. XOR outputs 1 only when the two inputs are different.
2. Building a truth table with three inputs
Three inputs give 2 × 2 × 2 = 8 rows. Write the inputs in binary counting order, 000 up to 111, so you never miss or repeat a row. A quick check: column A is four 0s then four 1s, column B goes 0 0 1 1, and column C alternates 0 1.
3. Worked example
Complete the truth table for X = (A AND B) OR (NOT C).
| A | B | C | A AND B | NOT C | X |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
X is 1 whenever either working column is 1. Read down the final column to check: 1 0 1 0 1 0 1 1.
4. From a problem statement to an expression
Exam questions often describe a system in words. Pick out each condition and the word that joins them.
Example: an alarm (X) sounds if the door is open (D = 1) and the system is armed (S = 1), or if a window is open (W = 1).
Expression: X = (D AND S) OR W
Use brackets to show which part is worked out first. Without them, D AND S OR W can be read two ways, and an ambiguous expression may not get the mark.
5. Mistakes that cost marks
- Missing or repeated rows because the inputs were not written in counting order.
- Mixing up NOR and XOR. NOR is 1 only when both inputs are 0; XOR is 1 when the inputs differ.
- Drawing a gate with three inputs. Use two gates instead.
- Forgetting the small circle on NAND, NOR and NOT symbols, which shows the output is inverted.
- Leaving out brackets, so the order of operations is unclear.
6. How to practise
Work through the notes and self-marking questions on the IGCSE Boolean logic page, then write a truth table for a new expression every day for a week and check it with the truth table generator. If a question asks you to “complete” or “draw”, check what the command word wants in our command words guide.
Frequently asked questions
How many rows does a truth table with three inputs have?
Eight. Each input can be 0 or 1, so three inputs give 2 × 2 × 2 = 8 combinations.
Is XOR on the IGCSE 0478 syllabus?
Yes. The six gates are NOT, AND, OR, NAND, NOR and XOR, and you need to know the symbol and truth table for each.
Can a logic gate have more than two inputs in the exam?
No. In IGCSE 0478 every gate except NOT has exactly two inputs. A circuit can still have three inputs in total, using more than one gate.
Stuck on logic circuits? In a 1-to-1 lesson we can practise truth tables, expressions and circuit questions together. Book a free demo →