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) OR C | AX = NOT ((A AND B) OR C) | |
| 2X = A AND (B OR C) | BB OR C is worked out first, then its result goes into AND with A | |
| 3Inner brackets are worked out first: A AND B, then OR with C, then the whole result is inverted by NOT | CX = A AND (B OR C) | |
| 4Same letters with different brackets can give a different output: when A=0, B=0 and C=1 this expression gives 0 | DThere are no brackets, so it is unclear which gate is worked out first. It needs brackets such as (A AND B) OR C or A AND (B OR C). | |
| 5X = A AND B OR C | EA closing bracket is missing, so the brackets do not pair up. It should be X = A AND (B OR C) or X = (A AND (B OR C)). | |
| 6X = (A AND (B OR C) | FA AND B is worked out first, then its result goes into OR with C |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
(A AND B) OR C — Brackets show which gate is worked out first. Here A AND B is done first, then its result goes into OR with C. A AND (B OR C) uses the same letters but gives a different output.X = (A AND B) OR CX = A AND (B OR C)A = 1, B = 0, C = 1
(A AND B) OR C = 1A = 0, B = 1, C = 1
(A AND B) OR C = 1
A AND (B OR C) = 0X = (A AND B) OR C
Step 1: P = A AND B
Step 2: X = P OR C