Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 3.
Output is 1 only when both inputs are 1: this is an AND gate.
Write: AND [1]
| A | B | X |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Truth table correct [1]
Output is 1 only when the inputs are different: this is an XOR gate (also called EOR).
Write: XOR [1]
| A | B | X |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Truth table correct [1]
Output is 1 only when both inputs are 0: this is a NOR gate.
Write: NOR [1]
| A | B | X |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Truth table correct [1]
X = (NOT A OR NOT B) OR NOT C. Draw one gate for each operator, with two inputs at most.
NOT gate with input A [1]
NOT gate with input B [1]
OR gate with the outputs of the first two NOT gates as its inputs [1]
NOT gate with input C [1]
Final OR gate with the output of the first OR gate and the output of the NOT C gate as its inputs; its output is X [1]
▶ Whole paper
Video solution of the whole paper · by O/Alevel CS by Wasiq. 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.