Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.
Build the circuit from the expression S = (A AND B AND C) OR (B XOR C), reading left to right. Use only 2-input gates.
Draw an AND gate with inputs A and B [1]
Draw a second AND gate with inputs C and the output of the first AND gate [1]
Draw an XOR gate with inputs B and C [1]
Join the outputs of the second AND gate and the XOR gate to an OR gate, whose output is S [1]
Work out each bracket, then OR them.
| A | B | C | A AND B AND C | B XOR C | S |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
First four rows of S correct (0, 1, 1, 0) [1]
Last four rows of S correct (0, 1, 1, 1) [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.