Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 3 of 3.
Build the circuit from the inside of the brackets outwards. Every gate has at most two inputs. Draw these gates:
NOT gate with input A [1]
OR gate whose inputs are the output of the NOT gate and B [1]
XOR gate with inputs B and C [1]
AND gate whose inputs are the output of the OR gate and the output of the XOR gate; its output is Z [1]
Work out each part of the statement for every row, then combine them:
| A | B | C | NOT A | NOT A OR B | B XOR C | Z |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 | 0 | 0 |
All 8 outputs correct [4]
Marks are also given for part of the column: 6 or 7 correct outputs score 3, 4 or 5 score 2, 2 or 3 score 1.
▶ Whole paper
Video solution of the whole paper · by ZAINEMATICS. 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.