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 NOT B) OR (NOT A AND B) | ARows with output 1 must be joined with OR, not AND. The correct expression is (NOT A AND B) OR (A AND NOT B). | |
| 2X = A AND B AND NOT C | BX = NOT A AND NOT B | |
| 3The only row with output 1 is A=0, B=0. Write this row with NOT on both inputs that are 0. | CB is 0 in this row, so it needs NOT. The correct row is A AND NOT B. | |
| 4Output 1 only when A=1 and B=0, and also when A=1 and B=1. Join the two row expressions with OR. | DX = (A AND NOT B) OR (A AND B) | |
| 5X = A AND B (for the row A=1, B=0 with output 1) | ERows 10 and 01 give output 1. Each row is written with AND and NOT on the 0 input, then the rows are joined with OR. | |
| 6X = (NOT A AND B) AND (A AND NOT B) (for rows 01 and 10 with output 1) | FThe only row with output 1 is A=1, B=1, C=0. The 0 input C gets NOT and all three inputs are joined with AND. |
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 NOT B) OR (NOT A AND B) — To write an expression from a truth table, take each row with output 1 and join its inputs with AND, adding NOT to any input that is 0. Then join those rows with OR.X = A AND BX = A AND NOT BX = (A AND NOT B) OR (NOT A AND B)X = A AND NOT B AND CX = (A AND NOT B) OR (NOT A AND B)