Which logic gate gives output 1 only when both inputs are 1?
A
XOR
B
AND
C
OR
D
NOT
Correct Answer: Option B — AND
Explanation:
The AND gate produces a high output only when all its inputs are high; if either input is low, the output remains low, making it a fundamental logic gate.