IGCSE Computer Science: Boolean Logic, Logic Gates and Truth Tables — Tutor Prep Guide
- 2026-11-27
Two things students do most often when drawing circuits are give NOT two inputs and simplify the circuit on their own. This chapter pins down the input count and output condition of all six gates, builds an eight-row truth table from a three-input expression, then rebuilds an expression from a truth table row by row, insisting throughout that the circuit is drawn as given with no simplification.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| True and false in binary | What do 0 and 1 mean in a logic operation? | 0 is false, 1 is true, and the operation only handles those two |
| Two input combinations | How many combinations of 0 and 1 do two inputs have? | Four: 00, 01, 10 and 11 |
| The name for inversion | AND followed by inversion is which gate? | NAND |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-12 min | Six gates | Give the input count and output condition for each | NOT takes one input, the rest take two |
| 12-20 min | Counting truth table rows | How many rows each gate needs | 22 in all, and 8 for three inputs |
| 20-32 min | Circuit from an expression | Draw (A AND B) OR (NOT C) | Three gates, three layers, one output |
| 32-42 min | Fill the truth table | Work all eight rows | 5 rows output 1, which is 62.5 per cent |
| 42-54 min | Back from a truth table | Two rows of 1 become two OR terms | One AND term per row, no simplification |
| 54-60 min | From a problem statement | Write the alarm expression and draw it | Three inputs, one output |
03 Teaching script (read it out)
Scene 1: Six gates – NOT takes one input, the other five take two
AND outputs 1 only when both inputs are 1, so one of the four rows is 1. OR outputs 1 when either input is 1, so three of the four rows are 1. NAND and NOR are the inversions of AND and OR, drawn as the same shape with a small circle: NAND outputs 0 only when both inputs are 1, and NOR outputs 1 only when both are 0.
XOR, also written EOR, fires when the inputs differ: 01 and 10 give 1, 00 and 11 give 0, so two of four rows are 1. The commonest error is treating XOR as OR and writing 1 for 11, when XOR must give 0 there.
Add the rows up: NOT takes 2, the other five take 4 each, which is 22 rows in all. Two inputs actually allow 16 different truth tables, but 0478 names only these five gates, so every question stays inside them and none asks you to invent a new one.
| Gate | Symbol shape | Inputs | Outputs 1 when | Rows of 1 with two inputs |
|---|---|---|---|---|
| NOT | triangle with a small circle | 1 | outputs 1 when the input is 0 | 1 of 2 rows |
| AND | D shape | 2 | outputs 1 only when both inputs are 1 | 1 of 4 rows |
| OR | shield shape | 2 | outputs 1 when either input is 1 | 3 of 4 rows |
| NAND | D shape with a small circle | 2 | the opposite of AND: 0 only when both inputs are 1 | 3 of 4 rows |
| NOR | shield shape with a small circle | 2 | the opposite of OR: 1 only when both inputs are 0 | 1 of 4 rows |
| XOR | shield shape with a double arc | 2 | outputs 1 when the two inputs differ | 2 of 4 rows |
Students recite all six output conditions without the table, then give the output of NAND and of XOR when both inputs are 1.
Scene 2: A circuit from an expression or a problem statement – three inputs, one output, no simplification
Fill the truth table in a fixed order: 000, 001, 010, 011, 100, 101, 110, 111, with A as the most significant bit. Row by row: A and B are both 1 only in 110 and 111, NOT C is 1 in the four rows where C is 0, and the OR of the two is 1 in 000, 010, 100, 110 and 111, so 5 rows, which is 62.5 per cent.
Rule one: no simplification. Draw exactly what is given. If the question writes (A AND B) OR (A AND C), draw two AND gates and one OR even though it is equivalent to A AND (B OR C), because the marks follow the given form. Rule two: the limit is three inputs and one output, so a fourth input line never appears.
A second demonstration, (A XOR B) AND C: XOR fires where A and B differ, which is 010 and 100, but AND C also needs C to be 1, so only 011 and 101 survive, which is 2 rows and 25.0 per cent.
| A | B | C | Output |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
Students change the expression to (A OR B) AND (NOT C), draw the circuit and say how many of the eight rows output 1.
Scene 3: An expression from a truth table – one AND term per row of 1
Demonstration: the output is 1 only in rows 011 and 110. Row 011 has A as 0, B as 1 and C as 1, so the first term is (NOT A AND B AND C); row 110 has A as 1, B as 1 and C as 0, so the second term is (A AND B AND NOT C); the whole expression is (NOT A AND B AND C) OR (A AND B AND NOT C), two terms for two rows, no more and no less.
No simplification applies here too: even when the two terms could be reduced, both are written, because the marks follow whether each row has its own term.
The third source is a circuit: work left to right, give each gate output an intermediate name such as X and Y, write Output left arrow X OR Y, then substitute the original expressions back.
Time budget: a three-input truth table is 8 rows, and at 45 seconds a row that is 360 seconds or 6 minutes, which is 5.7 per cent of a 105-minute paper. This kind of question must be automatic, so that time is left for the scenario question at the end.
Students write the two-term OR expression for an output that is 1 in rows 001 and 110, and explain why the terms cannot be merged.
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Give a gate output | NAND with both inputs at 1 | Recall that NAND inverts AND | 0 |
| Truth table from an expression | Output left arrow (A AND B) OR (NOT C) | Work all eight rows in the order 000 to 111 | 5 rows are 1, which is 62.5 per cent |
| Circuit from a problem statement | The alarm sounds when the door is open and the system armed, or the panic button is pressed | Write (Door AND Armed) OR Panic first, then draw layer by layer | Two layers, three inputs, one output |
| Expression from a truth table | The output is 1 only in 011 and 110 | One AND term per row, joined with OR, no simplification | (NOT A AND B AND C) OR (A AND B AND NOT C) |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| Write the four NAND outputs for 00, 01, 10 and 11. | 1, 1, 1, 0 | Check whether 11 was written as 1 |
| How many of the eight rows of (A XOR B) AND C output 1? | 2 rows, 011 and 101 | Check whether C being 1 was forgotten |
| How many rows do three-input and four-input truth tables have? | 8 rows and 16 rows | Check whether 3 and 4 were used as row counts |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| NOT drawn with two inputs | NOT has A and B going in | NOT is a single-input gate with one input line; the two-input one is NOR. |
| Four rows for three inputs | A, B and C are three inputs, so four rows will do | The row count is 2 to the power n, so three inputs need eight rows, 000 to 111, with none missing. |
| Simplifying the circuit | The two AND gates can be merged into one | The question says draw the given form with no simplification, and merging makes it a different expression, which loses marks. |
| XOR treated as OR | 11 gives 1 because OR gives 1 | XOR fires only when the inputs differ, so 11 gives 0; the gate that gives 1 there is OR. |
07 Homework (paper, section and question numbers)
- IGCSE Computer Science chapter index — All chapters for this subject
- Prep guide master index — Comparable chapters in other qualifications
- Redo this chapter — Three questions: NAND, XOR with AND, row counts
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| Six gates | NOT, AND, OR, NAND, NOR, XOR | Cannot say it, return to act one |
| Input counts | one for NOT, two for the other five | Cannot say it, return to the middle of act one |
| Truth table rows | eight for three inputs, sixteen for four | Cannot say it, return to act two |
09 Tutor FAQ
Students ask why a simpler circuit is not better. What do you say?
Answer with marks: the question tests drawing a circuit from an expression, and each gate earns its own mark. Simplified, the gates no longer map onto the expression, so an equivalent circuit still scores nothing. Add that real simplification is a separate topic, and 0478 explicitly asks for the given form with no simplification.
Must the truth table run 000 to 111?
Fix one order, and the safest is binary counting downwards with A as the most significant bit. A random order is how rows go missing, and a missing row is a missing answer. Write the row numbers down before starting: eight for three inputs and sixteen for four.
How do students remember the NAND and NOR symbols?
Remember that both are the same shape with a small circle: the D shape with a circle is NAND and the shield with a circle is NOR. The circle means inversion, so the condition flips: AND needs both inputs at 1 to give 1, so NAND gives 0 only when both are 1.
Find a tutor — freeTutor Registration →
A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.



