Logic Gates Flashcards
(10 cards)
What are the three basic logic gates?
AND, OR, and NOT gates.
What does an AND gate do?
It only outputs 1 if both inputs are 1. Otherwise, it outputs 0.
What does an OR gate do?
It gives an output of 1 if at least one input is 1.
What does a NOT gate do?
It flips the input. If the input is 1, the output is 0; if input is 0, output is 1
What is the output of an AND gate with inputs 1 and 0?
0 (because both inputs must be 1 for the output to be 1)
What is the output of an OR gate with inputs 0 and 1?
1 (because at least one input is 1)
What is the output of a NOT gate with input 0?
1
AND Gate – Truth Table
A | B | A AND B |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
OR Gate – Truth Table
A | B | A OR B |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
NOT Gate – Truth Table
A | NOT A |
| 0 | 1 |
| 1 | 0 |