Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.
Work out the two brackets, XOR them, then AND with NOT P.
| P | Q | R | P AND Q | (NOT Q) OR R | XOR | Y |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 1 | 0 | 0 |
First four rows of Y (1, 1, 0, 1) correct [1]
Last four rows of Y (0, 0, 0, 0) correct [1]
Draw: P and Q into an AND gate. Q into a NOT gate, then the NOT output and R into an OR gate.
Join the AND output and the OR output with an XOR gate. P goes into a NOT gate. The XOR output and the NOT P output go into a final AND gate. Its output is Y.
P AND Q and (NOT Q) OR R correct [1]
NOT gate, XOR gate and final AND gate correct [1]
▶ Starts at Q4 (29:28)
Starts at Q4 (29:28) · by Pseudocode Pro. 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.