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 | AA=1 B=1 C=0: (1 AND 1) = 1, 1 OR 0 = 1, X = 1 | |
| 2X = (A XOR B) AND C | BWork out A AND B first in an extra column, then OR that result with C in all 8 rows. | |
| 3A three-input truth table has 2 x 2 x 2 = 8 rows, counting from 000 to 111 in A, B, C order. | CThe bracket result was combined with C using AND, but the expression uses OR. It should be 0 OR 1 = 1, so X = 1. | |
| 4For X = (A AND B) OR C, the row A=1, B=1, C=0 gives X = 1 because the bracket result is 1. | D1 AND 0 is 0, not 1, because AND needs both inputs to be 1. The correct working is 0 OR 0 = 0, so X = 0. | |
| 5A=0 B=1 C=1: (0 AND 1) = 0, 0 AND 1 = 0, X = 0 | E000, 001, 010, 011, 100, 101, 110, 111 | |
| 6A=1 B=0 C=0: (1 AND 0) = 1, 1 OR 0 = 1, X = 1 | FWork out A XOR B first in an extra column. X is 1 only when that column is 1 and C is 1. |
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) OR C — Fill all 8 rows of A, B and C: work out the bracket (A AND B) in an extra column first, then combine it with C using OR to get output X.X = (A AND B) OR CX = (A AND B) OR CRows needed: 2 x 2 x 2 = 8A=1, B=1, C=0: P = A AND B = 1
X = P OR C = 1X = (A XOR B) AND NOT C