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 = A AND B | AThe gate name is written in lower case. Gate names must be in capitals, so it should be X = A AND B. | |
| 2X = NOT A | BThe output X is the opposite of input A: 1 becomes 0 and 0 becomes 1. | |
| 3A NAND gate with inputs A and B is written with the output X, an equals sign and the gate name in capitals between the inputs. | CNOT is placed after the input letter. NOT goes before the input it applies to, so it should be X = NOT A. | |
| 4An XOR gate with inputs A and B is written with the gate name XOR in capitals between the input letters. | DThe output X is 1 only when both input A and input B are 1. | |
| 5X = A and B | EX = A NAND B | |
| 6X = A NOT | FX = A XOR B |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
X = A AND B — A logic expression for one gate: write the output X, an equals sign, then the input letters joined by the gate name in capitals, such as X = NOT A or X = A XOR B.X = NOT AX = A AND BX = A NAND BX = A XOR BX = A NAND B