What is a Boolean expression?
A Boolean expression is a rule using binary inputs and operations such as AND, OR, NOT, NAND, NOR and XOR. Its output is either 0 or 1.
Syllabus focus
10.8 Logic expressions; 10.9 Representing truth tables; 10.10 Representing logic expressions. This article builds on Blogs 1 and 2 and complements the existing truth-table exam method.
10.8 — Reading Boolean expressions
Consider X = (A AND B) OR C. First find P = A AND B, then calculate X = P OR C. The brackets determine the order.
X = P OR C
Check your understanding
For A=1, B=0, C=1, what are P and X?
Reveal answer
P=0, X=1.
10.9 — How many rows does a truth table need?
With n independent binary inputs there are 2n combinations. Two inputs require four rows; three require eight. Use a consistent binary-counting order.
| Inputs | Rows |
|---|---|
| 1 | 2 |
| 2 | 4 |
| 3 | 8 |
| 4 | 16 |
Worked example 1 — AND followed by OR
For X = (A AND B) OR C, write all eight input combinations, then calculate P before X.
| A | B | C | P = A AND B | X = P OR C |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Whenever C=1, the final OR output is 1. When C=0, X equals P.
Worked example 2 — NOT and brackets
For X = (NOT A) AND (B OR C), calculate P = NOT A and Q = B OR C before X = P AND Q.
Q = B OR C
X = P AND Q
| A | B | C | P = NOT A | Q = B OR C | X |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 |
(NOT A) AND B is different from NOT (A AND B). The placement of NOT matters.10.10 — Turning an expression into a circuit
Draw the operation inside the brackets first. Connect its output to the next gate, along with any other input. Keep the original structure if the question says not to simplify.
Example — (A OR B) AND C
| A | B | C | P = A OR B | X = P AND C |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 1 |
From a circuit back to an expression
Trace the final gate backwards. If it is AND, fed by C and the output of an OR gate with inputs A and B, write X = (A OR B) AND C. Keep brackets to show the connections.
Check your understanding
A and NOT B enter an XOR gate. Write the expression.
Reveal answer
X = A XOR (NOT B).
Examiner insights — February/March 2026
In the February/March 2026 Paper 2 Principal Examiner Report, most candidates drew good circuits and completed truth tables accurately for Question 7. Some drew NOR and XOR symbols imprecisely; a small number gave opposite outputs, possibly because a NOT was added or missed.
FutureLogic recommendation: label intermediate results and check every inversion. These examiner observations apply to that examination series only.
Common mistakes
(A AND B) OR C is not A AND (B OR C).
NOT A differs from NOT (A AND B).
Three inputs require eight combinations.
Calculate each gate separately.
Original FutureLogic exam-style practice
Original teaching questions, not official Cambridge examination questions. Suggested marks are indicative.
Question 1 — 2 marks
How many rows does a truth table with four inputs require? Explain.
Reveal answer
16 (1), because 24=16 combinations (1).
Question 2 — 3 marks
Describe how to draw (A OR B) AND C as a circuit.
Reveal answer
A and B enter OR (1), its output enters AND (1), and C enters the other AND input (1).
Question 3 — 4 marks
Calculate X for (NOT A) AND (B OR C) when ABC = 000, 001, 010, 011.
Reveal answer
0, 1, 1, 1.
Question 4 — 4 marks
Find all eight outputs of (A AND B) OR C in binary-counting order.
Reveal answer
0, 1, 0, 1, 0, 1, 1, 1.
Quick quiz
- What is a Boolean expression?
- How many rows are needed for three inputs?
- Why use intermediate columns?
- Why do brackets matter?
Quiz answers
Reveal answers
1. A rule combining binary inputs with logic operations. 2. Eight. 3. To evaluate gates separately. 4. They determine which operation is evaluated first.
Final summary
Expression
Defines the logic.
Circuit
Shows gates and connections.
Truth table
Lists every combination.
Method
Evaluate one stage at a time.