Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.
P, Q and R are NOT A, NOT B and NOT C. S is the OR gate output and T is the AND gate output. Then Z = S XOR T.
| A | B | C | P | Q | R | S | T | Z |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 |
Working columns P, Q, R, S and T all correct [1]
Z correct for the first four rows [1]
Z correct for the last four rows [1]
Write a product for each row where Z = 1 (rows 001, 010, 011, 101, 110, 111). A 0 input gets NOT.
Z = NOT A . NOT B . C + NOT A . B . NOT C + NOT A . B . C + A . NOT B . C + A . B . NOT C + A . B . C
All six terms correct and no others (any three correct terms scores [1]) [2]
Put a 1 in the cell for each term in the expression (the cells in the BC = 01 column are 0).
| A \ BC | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 1 |
All cells correct (one error scores 1) [2]
Loop 1: the 2 × 2 block in columns BC = 11 and 10 (four 1s) [1]
Loop 2: the 2 × 2 block in columns BC = 00 and 10 (four 1s, wrapping round the edge of the map) [1]
First loop: B = 1 stays the same, so the term is B. Second loop: C = 0 stays the same, so the term is NOT C.
Write: Z = B + NOT C [1]
▶ Starts at Q6 (37:50)
Starts at Q6 (37:50) · 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.