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 | |
|---|---|---|
| 1(NOT A) AND B | ANOT flips only input A first. The result of that is then ANDed with B. | |
| 2NOT (A AND B) | BX = NOT (A AND B) | |
| 3NOT applies to the input A alone, and B is not changed before the AND | CA AND B is worked out first. NOT then flips the whole result of the bracket. | |
| 4NOT is applied to the output of an AND gate, so it flips the result of the bracket | DThe brackets are placed round A AND B, so NOT flips the final output. The student wanted NOT on input A only. | |
| 5X = NOT A AND B (meant: NOT (A AND B)) | EThe brackets are missing, so NOT applies only to A. The student wanted NOT to flip the whole result of A AND B. | |
| 6X = NOT (A AND B) (meant: (NOT A) AND B) | FX = (NOT A) AND B |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
NOT (A AND B) — NOT before a bracket flips the whole bracket's result. In (NOT A) AND B, NOT flips only input A, so NOT (A AND B) gives different results.X = NOT (A AND B)X = (NOT A) AND BX = (NOT A) AND BWhen A = 1 and B = 0:
NOT (A AND B) = 1When A = 1 and B = 0:
(NOT A) AND B = 0