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 | AAND gives 1 when both inputs are 1, so this row should have X = 1, not 0 | |
| 2X = A XOR B | BIn each row, write 1 in column X only when A and B are both 1; otherwise write 0 | |
| 3For a one-input expression, flip the value of A in every row and write it in column X, so A = 0 gives X = 1 | CX = NOT A | |
| 4For the row where A = 1 and B = 1, this expression gives an output of 1 because both inputs are 1 | DXOR gives 0 when both inputs are the same, so this row should have X = 0, not 1 | |
| 5A = 1, B = 1 gives X = 0 for X = A AND B | EX = A AND B | |
| 6A = 1, B = 1 gives X = 1 for X = A XOR B | FIn each row, write 1 in column X only when A and B are different; write 0 when they are the same |
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 — Complete the truth table row by row: apply the gate rule to the input values A and B in each row and write the result in column X. AND gives 1 only when both inputs are 1.X = A AND BX = NOT AX = A XOR BX = A AND B
A = 1, B = 0
X = 0X = A XOR B
A = 1, B = 1
X = 0