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:
NOT gate with input A [1]
AND gate with inputs B and the output of the NOT gate [1]
OR gate whose inputs are the output of that AND gate and C [1]
AND gate whose inputs are the output of that OR gate and B [1]
OR gate with inputs B and C [1]
NOR gate whose inputs are the output of the second AND gate and the output of the second OR gate; its output is X [1]
Work out the correct X for every row. The working columns are: NOT A AND B, then OR C, then AND B, then B OR C.
| A | B | C | NOT A AND B | OR C | AND B | B OR C | X |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
Compare with the given outputs:
| Row | A | B | C | Correct X | Given X | Match? |
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | 1 | yes |
| 2 | 0 | 0 | 1 | 0 | 1 | NO |
| 3 | 0 | 1 | 0 | 0 | 1 | NO |
| 4 | 0 | 1 | 1 | 0 | 0 | yes |
| 5 | 1 | 0 | 0 | 1 | 1 | yes |
| 6 | 1 | 0 | 1 | 0 | 0 | yes |
| 7 | 1 | 1 | 0 | 0 | 1 | NO |
| 8 | 1 | 1 | 1 | 0 | 1 | NO |
Write: Row 2, Row 3, Row 7, Row 8 (one mark for each correct row) [4]
Any order is accepted.
▶ Whole paper
Video solution of the whole paper · by Level Up with Aqeel Ahmed: CS Edition. 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.