From Problem Statements to Boolean Logic
To solve a Boolean logic problem, first define each binary input and identify exactly when the output must be 1. Then translate the conditions, preserve their grouping and check the result for every input combination.
A five-step exam method
- Define: write what 0 and 1 mean for each input.
- Translate: use AND for both, OR for at least one, NOT for the opposite condition.
- Group: use brackets to preserve the wording.
- Draw: connect the gates in the correct order.
- Verify: create a truth table, with intermediate columns.
Worked example 1: A security alarm
An alarm sounds (X = 1) when the system is armed (A = 1) AND either a door is open (B = 0) OR motion is detected (C = 1).
| Input | 0 means | 1 means |
|---|---|---|
| A | Disarmed | Armed |
| B | Door open | Door closed |
| C | No motion | Motion detected |
Translate the statement
X = A AND P
X = A AND (NOT B OR C)
Because the door is open when B = 0, the expression requires NOT B. The OR result is grouped before AND with the armed state.
Truth table β every combination
| A | B | C | Intermediate P | Output X |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
For A = 1, B = 0, C = 0, the alarm sounds because the system is armed and the door is open. If A = 0, the alarm never sounds.
Check your understanding
Does the alarm sound for A = 1, B = 1, C = 0?
Reveal answer
No. NOT B = 0 and C = 0, so P = 0; X = 1 AND 0 = 0.
Worked example 2: Greenhouse ventilation
A fan turns on (X = 1) when temperature is high (A = 1) AND the greenhouse is occupied (B = 1), OR when a manual override is active (C = 1).
X = P OR C
X = (A AND B) OR C
Original circuit connection diagram
These labelled blocks explain connections; use standard logic-gate shapes when drawing examination circuits.
Truth table
| A | B | C | Intermediate P | Output X |
|---|---|---|---|---|
| 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 |
Check your understanding
What is X when A = 0, B = 0, C = 1?
Reveal answer
X = 1 because the manual override C is active.
Why brackets matter
(A AND B) OR C is not equivalent to A AND (B OR C). With A = 0, B = 0, C = 1, the first gives 1 and the second gives 0.
Examiner insight: February/March 2026
The Paper 2 Principal Examiner Report observed that most candidates drew good logic circuits and completed truth tables accurately. Some drew NOR and XOR symbols unclearly, while a few inverted truth-table outputs by adding or missing a NOT operation. These findings concern that examination series specifically.
FutureLogic exam technique
Annotate the meaning of 0 and 1, write intermediate results, and check the final output for both a case that should activate and one that should not. Use the correct standard symbols for each gate.
Common mistakes
- Assuming every input is active when it equals 1.
- Using XOR when OR is intended.
- Forgetting NOT when a condition is represented by 0.
- Moving brackets and changing the logic.
- Missing truth-table rows or mixing up intermediate and final outputs.
Original exam-style practice: Laboratory warning light
A warning light (X = 1) activates when hazardous gas is detected (G = 1), OR when temperature is high (T = 1) AND an extractor fan is off (F = 0).
Question 1 β Write the expression
Reveal answer
X = G OR (T AND NOT F).
Question 2 β Find the output
What is X for G = 0, T = 1, F = 0?
Reveal answer
X = 1. NOT F = 1, so T AND NOT F = 1, then G OR 1 = 1.
Question 3 β Describe the circuit
Reveal answer
Connect F to NOT; connect its output and T to AND; connect that output and G to OR; label the final output X.
Final summary
Define
State what each input value means.
Translate
Use the correct logic operations.
Group
Preserve the meaning with brackets.
Verify
Check every truth-table row.