Sure, here are five examples of truth tables:
1. Example 1: AND Gate
In this example, we have two inputs A and B and one output Y. The truth table for the AND gate is as follows:
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
2. Example 2: OR Gate
In this example, we have two inputs A and B and one output Y. The truth table for the OR gate is as follows:
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
3. Example 3: NOT Gate
In this example, we have one input A and one output Y. The truth table for the NOT gate is as follows:
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
4. Example 4: XOR Gate
In this example, we have two inputs A and B and one output Y. The truth table for the XOR gate is as follows:
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
5. Example 5: NAND Gate
In this example, we have two inputs A and B and one output Y. The truth table for the NAND gate is as follows:
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |