The gate whose output is 0 only for 1 and 1
A logic gate has two inputs, A and B. Its output is 0 only when A = 1 and B = 1. For every other combination of inputs the output is 1.
Which gate is it?
A AND
B NOR
C NAND
D XOR
[1]
- 1
Write each gate's output column for the inputs 00, 01, 10, 11:
A B AND NOR NAND XOR 0 0 0 1 1 0 0 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0 - 2
Match the description. The only column that is 1, 1, 1, 0 is NAND (NOT AND), the inverse of AND. Answer C (1).
Answer
C (NAND)
Examiner tip
Examiner tip: NAND and NOR are the outputs of AND and OR turned upside down. Write the AND or OR column first, then invert every bit.
Common mistake: choosing D. XOR also gives 0 when A = 1 and B = 1, but it gives 0 for A = 0 and B = 0 as well, so its output is not 0 'only' for 1 and 1.