Boolean Logic · 5 question types
Past paper frequency (2018 to 2024)
This topic accounts for approximately 9% of your exam marks.
Truth tables and Boolean expressions from circuit diagrams appear in every paper. 4 to 6 marks.

For each gate the format is the same: the rule in plain English, the Boolean notation accepted by examiners, and the truth table.
Rule: the output is 1 only when every input is 1. If any input is 0, the output is 0.
| Boolean notation | Read aloud |
|---|---|
A · B, AB, A ∧ B | "A AND B" |
| A | B | A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
A quick way to remember the rule: an AND gate is like two switches in series; current only flows through if both are closed.
Rule: the output is 1 when at least one input is 1. The output is 0 only when every input is 0.
| Boolean notation | Read aloud |
|---|---|
A + B, A ∨ B | "A OR B" |
| A | B | A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Think of an OR gate as two switches in parallel: closing either one (or both) lets current flow.
Rule: the output is the inverse of the input. A 1 becomes a 0; a 0 becomes a 1. NOT has exactly one input.
| Boolean notation | Read aloud |
|---|---|
¬A, A̅, NOT A | "NOT A" |
| A | NOT A |
|---|---|
| 0 | 1 |
| 1 | 0 |
A NOT gate is also called an inverter because it flips its input.
Rule: the output is 1 when exactly one input is 1. If both inputs are the same (both 0 or both 1), the output is 0.
| Boolean notation | Read aloud |
|---|---|
A ⊕ B, A XOR B | "A XOR B" |
| A | B | A XOR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
The easiest way to keep XOR straight: the output is 1 when the inputs differ, and 0 when they match.
Rule: the output is the opposite of AND. NAND outputs 0 only when every input is 1; in every other case the output is 1.
| Boolean notation | Read aloud |
|---|---|
¬(A · B), A NAND B | "A NAND B" |
| A | B | A NAND B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
NAND is drawn as an AND gate with a small circle on the output. The circle is the "NOT bubble" and it flips the result.
Rule: the output is the opposite of OR. NOR outputs 1 only when every input is 0; in every other case the output is 0.
| Boolean notation | Read aloud |
|---|---|
¬(A + B), A NOR B | "A NOR B" |
| A | B | A NOR B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
NOR is drawn as an OR gate with the same NOT bubble on the output.
It is worth memorising this single table; almost every logic-gates question depends on it.
| A | B | AND | OR | XOR | NAND | NOR |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
Two patterns are worth noticing:
That is exactly what the "N" in NAND and NOR means.
