Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.
Split the expression into small gates. X = NOT (NOT (A AND B) OR NOT (B AND C)). Draw:
An AND gate with inputs A and B, then a NOT gate on its output: NOT (A AND B) [1]
An AND gate with inputs B and C, then a NOT gate on its output: NOT (B AND C) [1]
An OR gate taking both NOT outputs, then a NOT gate on its output. This output is X [1]
A NAND gate may be drawn in place of an AND gate followed by a NOT gate.
Y = (NOT P AND Q) OR (Q AND NOT R). The first bracket is 1 when P = 0 and Q = 1. The second is 1 when Q = 1 and R = 0.
| P | Q | R | Y |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
First four rows correct [1]
Last four rows correct [1]
▶ Topic lesson
A lesson on this topic · 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.