Element 3 Question 3-34E2
C3E34: Logic Gates
What is a characteristic of a NAND gate?
- Produces a logic “0” at its output only when all inputs are logic “0”.
- Produces a logic “1” at its output only when all inputs are logic “1”.
- Produces a logic “0” at its output if some but not all of its inputs are logic “1”.
- Produces a logic “0” at its output only when all inputs are logic “1”. (correct answer)
Correct answer: D, Produces a logic “0” at its output only when all inputs are logic “1”.
Explanation
A NAND gate is an AND gate followed by an inverter. Its output is 0 only when every input is 1. Any input at 0 makes the output 1. Its truth table is the AND table with every output flipped, written as the complement of A·B. NAND is a universal gate: any logic function can be built from NANDs alone.
Why the other answers are wrong
- A, Produces a logic “0” at its output only when all inputs are logic “0”.: Output 0 only when all inputs are 0 is the behavior of an OR gate; a NAND with all inputs low outputs 1.
- B, Produces a logic “1” at its output only when all inputs are logic “1”.: Output 1 only when all inputs are 1 is the plain AND gate; the NAND inverts that and outputs 0 in that case.
- C, Produces a logic “0” at its output if some but not all of its inputs are logic “1”.: With some but not all inputs high, a NAND outputs 1, not 0; only the all-high case drives its output low.