Topic 10 · Boolean Logic
Move without gaps among problem statements, gate functions, Boolean expressions, circuits, and truth tables.
3 lesson sections · 3 worked applications · Paper 2 · Cambridge 0478 (2026–2028)
Binary inputs and outputs, systematic row ordering, and nested expression reading.
Draw the circuit for the statement given without simplification. Complete intermediate gate outputs before the final column.
Logic Gates & Truth Tables
The defining description of NOT is “is the single input gate and reverses its input.” Connect it with AND, whose role is “outputs 1 only when both inputs are 1.”
Required vocabulary and boundaries
| Idea | Precise role | Evidence or example |
|---|---|---|
| NOT | is the single input gate and reverses its input | NOT 0 = 1 in a truth table |
| AND | outputs 1 only when both inputs are 1 | 1 AND 1 = 1 |
| OR | outputs 1 when at least one input is 1 | 0 OR 1 = 1 |
| NAND | the inverse of AND | 1 NAND 1 = 0 |
| NOR | the inverse of OR | 0 NOR 0 = 1 |
| XOR (EOR) | outputs 1 when its two inputs differ | 1 XOR 0 = 1 |
Four-step exam routine
Identify the exact clue and name NOT only when its defining role fits.
State the mechanism or boundary: outputs 1 only when both inputs are 1.
Apply the idea to evidence such as “0 OR 1 = 1.”
Reject the tempting error that is identical to AND.
Reason Before Naming
Truth tables make gate rules visible because each row tests one exact input combination.
Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.
NAND is the opposite of AND, so it outputs 0 only when both inputs are 1.
| Scenario clue | What it proves |
|---|---|
| invert one input | NOT |
| both required | AND |
| either allowed | OR |
| different inputs | XOR |
| opposite of AND | NAND |
| opposite of OR | NOR |
When The Scenario Is Less Obvious
The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.
- logic gate: digital circuit that applies a logic rule
- input: binary value entering a gate
- output: binary value produced by a gate
- truth table: table showing all input combinations and outputs
- inversion: changing 0 to 1 or 1 to 0
A full answer names the gate rule and uses the exact input row as evidence.
| Term | Use in this lesson |
|---|---|
| logic gate | digital circuit that applies a logic rule |
| input | binary value entering a gate |
| output | binary value produced by a gate |
| truth table | table showing all input combinations and outputs |
| inversion | changing 0 to 1 or 1 to 0 |
A Common Mix-Up
A common mistake is treating XOR like OR.
Fix: Check whether the gate is inverted, then list rows in binary order.
| Mistake | Correction |
|---|---|
| A common mistake is treating XOR like OR. | Check whether the gate is inverted, then list rows in binary order. |
Logic Circuits & Boolean Expressions
The defining description of logic-expression-to-circuit conversion is “creates a logic circuit in the stated Boolean or logic expression structure without simplification.” Connect it with logic-circuit-to-expression conversion, whose role is “follows connections from inputs through each gate to write the final logic expression.”
Required vocabulary and boundaries
| Idea | Precise role | Evidence or example |
|---|---|---|
| logic-expression-to-circuit conversion | creates a logic circuit in the stated Boolean or logic expression structure without simplification | A AND (B OR C) uses OR before AND |
| logic-circuit-to-expression conversion | follows connections from inputs through each gate to write the final logic expression | write an inner gate result inside brackets |
| truth-table input rows | contain every possible binary input combination | eight rows for three inputs |
| intermediate gate output | records a gate's result before it feeds a later gate | X = B OR C before Output = A AND X |
| logic-circuit limit | uses no more than three inputs and one output when converting a problem statement, truth table, or logic expression | inputs A, B, C and one Output |
| unsimplified circuit rule | draws the circuit for the exact statement given even if algebraic simplification is possible | retaining a specified NOT and AND arrangement |
Four-step exam routine
Identify the exact clue and name logic-expression-to-circuit conversion only when its defining role fits.
State the mechanism or boundary: follows connections from inputs through each gate to write the final logic expression.
Apply the idea to evidence such as “eight rows for three inputs.”
Reject the tempting error that must always equal the final circuit output.
Reason Before Naming
Tracing is about evidence: every final output should be supported by earlier gate outputs.
Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.
Intermediate outputs are needed because later gates use those values as their inputs.
| Scenario clue | What it proves |
|---|---|
| A=1, B=1 | A AND B = 1 |
| C=0 | NOT C = 1 |
| 1 OR 1 | X = 1 |
| A XOR B | different-input check |
When The Scenario Is Less Obvious
The question may include a boundary case or a tempting wrong answer. Use the exact role in the scenario as evidence.
- logic circuit: connected gates that produce a final output
- Boolean expression: written form of a logic circuit
- intermediate output: result from a gate before the final output
- brackets: symbols showing which part to evaluate first
- trace: work through the circuit step by step
A strong answer gives a trace: input values, intermediate outputs, then final output.
| Term | Use in this lesson |
|---|---|
| logic circuit | connected gates that produce a final output |
| Boolean expression | written form of a logic circuit |
| intermediate output | result from a gate before the final output |
| brackets | symbols showing which part to evaluate first |
| trace | work through the circuit step by step |
A Common Mix-Up
A common mistake is skipping intermediate outputs.
Fix: Work left to right through the circuit structure, but evaluate bracketed or inverted parts before the final gate.
| Mistake | Correction |
|---|---|
| A common mistake is skipping intermediate outputs. | Work left to right through the circuit structure, but evaluate bracketed or inverted parts before the final gate. |
Logic Scenarios & Problem Solving
The defining description of AND clue is “both or all stated conditions must be true.” Connect it with OR clue, whose role is “at least one stated condition must be true.”
Required vocabulary and boundaries
| Idea | Precise role | Evidence or example |
|---|---|---|
| AND clue | both or all stated conditions must be true | dark and motion detected |
| OR clue | at least one stated condition must be true | smoke or heat detected |
| NOT clue | the stated condition is false or inactive | door is not closed |
| input variable | represents one sensor, switch, or condition | M means motion detected |
| output variable | represents the final action or result | A means alarm sounds |
| given structure | a requested circuit is drawn without simplification and with at most three inputs and one output | A AND (B OR C) |
Four-step exam routine
Identify the exact clue and name AND clue only when its defining role fits.
State the mechanism or boundary: at least one stated condition must be true.
Apply the idea to evidence such as “door is not closed.”
Reject the tempting error that is the final alarm output.
Reason Before Naming
A good expression should make the real system rule unambiguous.
Start by underlining the clue in the scenario, then decide what job that clue is describing. This keeps the answer tied to the concept being assessed.
B = S OR E because smoke detection or the emergency button is enough to sound the buzzer.
| Scenario clue | What it proves |
|---|---|
| dark and motion | D AND M |
| smoke or heat | S OR H |
| door not closed | NOT D |
| dry and (manual or timer) | D AND (M OR T) |
Streetlamp Scenario
A lamp turns on when it is dark and motion is detected.
Let D mean dark and M mean motion. Both conditions are required.
Result: L = D AND M.
| Word clue | Logic |
|---|---|
| dark | D |
| motion | M |
| and | AND |
A Common Mix-Up
A common mistake is choosing a gate from the story topic instead of the connector words.
Fix: Map variables first, then translate connector words into gates.
| Mistake | Correction |
|---|---|
| A common mistake is choosing a gate from the story topic instead of the connector words. | Map variables first, then translate connector words into gates. |
Turn knowledge into marks
A high-quality response does more than recall a term. It selects the command word, states the exact role, follows the mechanism in order, and connects the effect to the scenario.
Define precisely
For NOT, begin with the defining role: is the single input gate and reverses its input. Do not replace the definition with an example.
Describe a process
Use an ordered chain. Name what enters, what changes or is checked, and what result follows. A useful anchor here is “0 OR 1 = 1.”
Apply or justify
Quote the scenario need, select output variable, then link its role — represents the final action or result — to the required outcome.
Repair a misconception
Do not accept the claim that must always be simplified first. Replace it with the exact boundary: a requested circuit is drawn without simplification and with at most three inputs and one output.
Mark-by-mark response ladder
- Name: use the exact syllabus term.
- Role: define what that term does or represents.
- Mechanism: describe the relevant steps in their logical order.
- Context: explain why that mechanism matters in the stated scenario.
- Boundary: avoid claiming more than the method guarantees.
Last-pass checklist
Mapped to Cambridge IGCSE Computer Science 0478 · 2026–2028 syllabus, version 5