Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.
Read the circuit gate by gate. A and B go into a NAND gate. B and C go into an XOR gate, and its output goes through a NOT gate. The NAND output and the NOT output go into a final NAND gate.
First NAND gate written: A NAND B [1]
NOT of the XOR written: NOT (B XOR C) [1]
Final NAND joins them: X = (A NAND B) NAND (NOT (B XOR C)) [1]
Work out B AND (A NAND B) AND NOT C first, then XOR it with A.
| A | B | C | B AND (A NAND B) AND NOT C | X |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 |
First four rows of X (0, 0, 1, 0) correct [1]
Last four rows of X (1, 1, 1, 1) correct [1]
▶ Starts at Q4 (43:49)
Starts at Q4 (43:49) · by Pseudocode Pro. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.