The three-way conversion muscle. Expression ↔ truth table ↔ circuit. Every Cambridge Paper 2 tests this. Every year. Without fail.
In Lab A you learnt the six gates in isolation. Lab B is where they become useful. You'll wire them together into logic circuits and convert freely between three representations:
X = (A AND B) OR NOT CCambridge tests this every year without fail: 2022 F/M22 Q3, M/J22 Q4, 2023 Q9, 2024 Q8, 2025 Q7. Master the three-way conversion and you own the second half of Paper 2's logic content.
"The gates compose. The circuit computes the function." Each of the three forms describes the same function. Move between them fluently — that's what Lab B teaches.
NOT (B OR C) vs B OR NOT C trapY = Y = AND.Y = (A OR B) AND (NOT C).Key rule: only NOT, AND, OR are used to construct expressions from truth tables. The other three gates (NAND, NOR, XOR) are for identification and evaluation, not construction.
NOT variable. Join with AND.X = (row1) OR (row2) OR (row3)…X = (NOT A AND B) OR (A AND B).Reverse of §4.2. Read the expression, draw the circuit from the right (final gate) working left.
Each example follows the textbook method exactly. Given → step-by-step → trace → result → why it works.
0 / 8 revealed
Y = . Then identify the final gate.Expression ↔ truth table ↔ circuit — you know the sum-of-products method, you catch the B OR NOT C vs NOT (B OR C) trap, and you always start from the final gate.
Next up: Lab C · Purpose (Application) — where you'll read real-world problem statements and translate them into gates, circuits, and truth tables. This is the exam integration lab.
Signal taught you the gates. Circuit (this lab) teaches you to compose them. Purpose teaches you to read a real-world problem and translate it into gates.
The gates compose. The circuit computes the function.
Learn slows down what Book Notes covered. Each of the four skills gets a walk-through. When you're comfortable, head to Activities and open the Circuit Builder.
Every logic function has three equivalent forms. Being fluent in all three — and moving between them — is the whole point of Lab B.
| Form | Example | Best for |
|---|---|---|
| Expression | X = (A AND B) OR NOT C | Compact writing · algebra |
| Truth table | 8 rows · A/B/C/X columns | Enumerating every case · marking |
| Circuit | 3 gates wired · A/B → AND → OR ← NOT ← C | Hardware · visual reasoning |
Two methods for writing an expression from a truth table. Only one is safe for exams.
The safe method. Always works. Uses NOT, AND, OR only.
For each row where output = 1, write an AND term (1 as-is, 0 as NOT-of). Join with OR.
Example: output = 1 at (0,1) and (1,1) → (NOT A AND B) OR (A AND B)
The shorter method. Sometimes.
Spot input values that stay constant across the output=1 rows. Use those to write a simpler expression.
Same example: B is always 1 in both output=1 rows → B. Same function, one letter.
Exam advice: Use sum-of-products by default. Constant-value is a stretch skill — save it for questions where it's clearly asked or where simplification is invited. If in doubt, sum-of-products always earns full marks.
Any time a gate's output feeds another gate, give it a label — D, E, F. Add a column to your truth table for each. Fill one column at a time, all rows, before moving on. This is what "Working space" means in Cambridge exams.
Example. For Y = (A OR B) AND NOT C:
| A | B | C | D (A OR B) | E (NOT C) | Y (D AND E) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 |
Notice. Column D is only A and B. Column E is only C. Column Y depends only on D and E. You never juggle three variables at once — that's what the intermediate columns are for.
The Circuit Builder has 5 modes — one per Cambridge question shape. Start with Modes 4 and 5 (truth-table completion) — they're the highest-frequency Cambridge questions and they're the fastest to build fluency in. Modes 1, 2, 3 unlock once you've completed 4 and 5 once (progressive disclosure).
Not in this lab: problem-statement questions (10.3.b, 10.4.a) — those live in Lab C.
Five modes — one per Cambridge question shape. Each mode uses the parser under the hood: your answer is compared behaviourally, so (A AND B) OR C and C OR (A AND B) are both accepted; A OR (B AND C) (wrong grouping) is not.
Progressive disclosure: Modes 1, 2, 3 (build a circuit) unlock after you've completed Modes 4 and 5 (read one) at least once. Start with what's fast — the reading modes.
⌨️ Keyboard: Tab through gate palette · Enter to select · Arrow keys to position · Enter to place · Delete to remove. Wire tool: Tab to output pin · Space to start wire · Tab to target pin · Space to connect.
Mixed drills from Modes 4 and 5 (fast to answer). Adaptive: your weakest mode surfaces 2× more often. Streaks show at 3 · 6 · 10 correct.
Complete each mode at least once. Weak modes surface 2× more often.
Mode 4 · Circuit → TT. See a circuit, complete the truth table cell by cell. Highest-frequency Cambridge question.
Mode 5 · Expression → TT. See an expression, fill the intermediate + output columns. Row-by-row discipline.
Mode 1 · Expression → Circuit. Read an expression, write your own equivalent (parser checks behavioural match).
Mode 2 · TT → Circuit. Given a truth table, write the sum-of-products expression.
Mode 3 · Circuit → Expression. Rendered circuit, you write the expression.
Weighting adapts to your accuracy per mode. Missed questions log to Mistakes automatically.
Every question traces to a real Cambridge Paper 2 (P21/P22/P23 for 2023+, P11/P12/P13 for 2022 under the pre-syllabus-change format). Write your answer, then self-mark against the mark scheme.
Read before your exam. Look at Mistakes for the ones you keep making.
Six one-liners. Recite these before your exam and you own the composition muscle.
Tick each item as you master it. Tap any status chip to override manually. When all 12 are ticked, the Module Mastered banner unlocks.
Mastered = 3+ attempts and ≥70% accuracy. Tap the status chip to override.
Every wrong answer captures here automatically.
Your attempts, accuracy, and mastery counts across Lab B.