Amateur Extra Question E7A07

E7A: Digital circuits: digital circuit principles and logic circuits; classes of logic elements; positive and negative logic; frequency dividers; truth tables

What logical operation does a NAND gate perform?

  1. It produces a 0 at its output only if all inputs are 0
  2. It produces a 1 at its output only if all inputs are 1
  3. It produces a 0 at its output if some but not all inputs are 1
  4. It produces a 0 at its output only if all inputs are 1 (correct answer)

Correct answer: D, It produces a 0 at its output only if all inputs are 1

Explanation

NAND means NOT-AND: the gate performs AND and then inverts the result. AND outputs 1 only when every input is 1, so NAND outputs 0 only in that one case and 1 for every other input combination. The two-input truth table is 00→1, 01→1, 10→1, 11→0. NAND is called a universal gate because any logic function can be built from NAND gates alone.

Why the other answers are wrong

Previous: E7A06 · All Amateur Extra questions · Next: E7A08

Practice E7 Practical Circuits