Logic circuits

When is the output of a two-input NAND gate 0?

  1. AWhen both inputs are 1
  2. BWhen at least one input is 0
  3. CWhen both inputs are 0
Show answer and explanation

Answer: A. When both inputs are 1

NAND is the negation of AND: its output is 0 only when all inputs are 1, and 1 otherwise. It is a universal gate from which NOT, AND and OR can be built, and in CMOS it takes just four transistors—fewer than AND, which is a NAND plus an inverter (six). Logic synthesis therefore makes heavy use of NAND and NOR cells, and NAND flash is so named because its series-connected cells resemble a NAND structure.