Question
What logical operation does a NAND gate perform?
Answer Options
- A) It produces a 0 at its output only if all inputs are 0
- B) It produces a 1 at its output only if all inputs are 1
- C) It produces a 0 at its output if some but not all inputs are 1
- D) It produces a 0 at its output only if all inputs are 1
Correct Answer: D
Explanation
A NAND gate is a combination of an AND function followed by a NOT (inverter) function. To understand its logic, one must first recall the AND function: the output is only ‘1’ if all inputs are ‘1’.
Since the NAND gate inverts this result, its logical operation is to produce a 0 at its output only if all inputs are 1. In all other input combinations (if one or more inputs are ‘0’), the AND output would be ‘0’, and the NAND output becomes ‘1’. This makes the NAND gate a ‘universal’ gate, meaning it can be used to construct all other fundamental logic gates.
This topic was automatically created to facilitate community discussion about this exam question. Feel free to share study tips, memory tricks, or additional explanations!