Worked solution from the Boolean logic Paper 1 Computer Systems booklet, Part 2 of 2.
Build the circuit from the inside of the brackets outwards. Every gate has at most two inputs. Draw these gates:
AND gate with inputs A and B [1]
NOT gate with input B [1]
AND gate with inputs C and the output of the NOT B gate [1]
OR gate whose inputs are the outputs of the two AND gates [1]
NOT gate with input C [1]
XOR gate whose inputs are the output of the OR gate and the output of the NOT C gate; its output is X [1]
Work out the correct X for every row:
| A | B | C | A AND B | C AND NOT B | OR of both | NOT C | X |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 1 | 0 | 1 |
Compare with the given outputs:
| Row | A | B | C | Correct X | Given X | Match? |
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 0 | NO |
| 2 | 0 | 0 | 1 | 1 | 1 | yes |
| 3 | 0 | 1 | 0 | 1 | 0 | NO |
| 4 | 0 | 1 | 1 | 0 | 1 | NO |
| 5 | 1 | 0 | 0 | 1 | 0 | NO |
| 6 | 1 | 0 | 1 | 1 | 1 | yes |
| 7 | 1 | 1 | 0 | 0 | 0 | yes |
| 8 | 1 | 1 | 1 | 1 | 1 | yes |
Write: Row 1, Row 3, Row 4, Row 5 (one mark for each correct row) [4]
Any order is accepted.
▶ 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.