Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1X = NOT A | AA two-input gate: NAND always takes exactly two inputs, A and B | |
| 2X = A NAND B | BThis uses an AND gate with three inputs. No gate has three inputs, so two gates must be combined, for example (A AND B) AND C. | |
| 3Combining two gates to handle three inputs A, B and C, because no gate has three inputs | CNOT is given two inputs, but it has exactly one input. It should be NOT A, or NOT applied to a single input or bracket. | |
| 4Only one gate in this course has a single input | DThe NOT gate has exactly one input (A) and one output (X) | |
| 5X = A AND B AND C | EX = NOT B | |
| 6X = NOT A B | FX = (A AND B) OR C |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
NOT: 1 input, others: 2 — NOT has exactly one input. AND, OR, NAND, NOR and XOR each have exactly two inputs. No three-input gates in this course, so join two gates for three inputs.// one input only
X = NOT A// NOT has 1 input// NAND, NOR and XOR each have 2 inputs// three inputs: A, B and C
X = (A AND B) OR C// two gates, three inputs
X = (A OR B) AND C