2.1.12 - Construct truth tables using the above operators. Flashcards
How do you construct a truth table for Boolean operators?
To construct a truth table, list input columns on the left, partial outputs in the middle (optional), and the output column on the right. Ensure there is a row for every possible configuration of inputs.
Construct a truth table for the AND operator with two inputs.
A | B | A AND B |
|—|—|———|
| 0 | 0 | 0 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 1 | 1 |
Construct a truth table for the OR operator with two inputs.
A | B | A OR B |
|—|—|——–|
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 1 |
Construct a truth table for the NOT operator with one input.
A | NOT A |
|—|——-|
| 0 | 1 |
| 1 | 0 |
Construct a truth table for the NAND operator with two inputs.
A | B | A NAND B |
|—|—|———-|
| 0 | 0 | 1 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 0 |
Construct a truth table for the NOR operator with two inputs.
A | B | A NOR B |
|—|—|———|
| 0 | 0 | 1 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 1 | 0 |
Construct a truth table for the XOR operator with two inputs.
A | B | A XOR B |
|—|—|———|
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 0 |