What is a NAND gate? Write its truth table.
Previous Year Questions · Question 2 of 6
What is a NAND gate? Write its truth table.
Solution:
Key idea: A NAND gate is an AND gate followed by a NOT gate ("NOT-AND"). Its output is the inverse of the AND output: .
Step 1 — Say what a NAND gate is.
A NAND gate is a logic gate with two (or more) inputs and one output, whose output is 0 only when all its inputs are 1; for every other combination the output is 1. Its symbol is the AND symbol with a small circle (bubble) at the output, which shows the inversion.

Step 2 — Write the Boolean expression.
The output is the complement of AND .
Step 3 — Write the truth table.
Taking all four combinations of the inputs and gives the table below.
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Therefore, a NAND gate is an AND gate followed by a NOT gate, , whose output is 0 only when both inputs are 1.
