Worked solution from the Boolean logic Paper 1 Computer Systems booklet, Part 1 of 2.
Think about each gate's truth table and tick the statements that are true for it.
| Statement | NAND | OR | XOR |
|---|---|---|---|
| if both inputs are 1, the output is 1 | ✓ | ||
| if both inputs are different from each other, the output is 1 | ✓ | ✓ | ✓ |
| if both inputs are 0, the output is 0 | ✓ | ✓ | |
| if both inputs are the same as each other, the output is always 0 | ✓ |
Row 1 correct: only OR ticked [1]
Row 2 correct: NAND, OR and XOR all ticked [1]
Row 3 correct: OR and XOR ticked [1]
Row 4 correct: only XOR ticked [1]
Choose a gate that is not in the list, for example AND.
Write: Logic gate: AND [1]
| A | B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Truth table that matches the gate chosen [1]
Another gate that is not in the list is also accepted if its truth table matches, but AND is the safest.
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. 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.