Computer Science for IGCSE & O level - Boolean Logic (Section 8 - No. 11)
A truth table has two inputs, A and B. Which of the following is true for a NAND gate?
Output is 1 if either A or B is 0, and 0 only if both are 1.
Output is 1 if both A and B are 1, and 0 otherwise.
Output is 0 if either A or B is 1, and 1 only if both are 0.
Output is 1 if both A and B are 0, and 0 otherwise.
Explanation
A NAND gate is the opposite of an AND gate. It outputs 0 only when both inputs are 1 and outputs 1 in all other cases.
Comments (0)
