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 | AReading one row as a situation: A AND B is false, but C is true, so the OR makes the statement true and X is 1. | |
| 2A=1, B=0, C=1 gives X = 1 | BThere are three inputs (A, B and C), so the table needs 8 rows, not 4. Four rows would only cover two inputs. | |
| 3A problem statement says: the alarm sounds if the door is open AND the system is on, OR if the panic button is pressed. Write it as an expression. | CX = (A AND B) OR C | |
| 4With three inputs, the truth table needs every combination, so you work out X for this many rows. | DThe output X is 1 when both A and B are 1, or when C is 1. Use this expression to work out X for each row of the truth table. | |
| 5Row A=0, B=1, C=0: (A AND B) OR C = 1, so X = 1 | E2 x 2 x 2 = 8 rows | |
| 6Truth table for X = (A AND B) OR C has only 4 rows | FA AND B is 0 AND 1 = 0, and C is 0, so 0 OR 0 = 0. X should be 0, not 1. Only put 1 where the statement is true. |
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 — Write the problem statement as an expression like this, then find X for every row of the table: put 1 where the statement is true and 0 where it is false.// X is 1 when A and B are both 1, or C is 1
X = (A AND B) OR C// X is 1 if the bracket is 1, or C is 1
X = (A AND B) OR CX = (A AND B) OR C
A=1, B=0, C=1 -> X = 1X = (A OR B) AND C
A=1, B=1, C=0 -> X = 0// X is 1 when A is 1 and C is 0
X = A AND NOT C