Which logic gate outputs true only when inputs are different?
Show answer
Correct answer B
The XOR (Exclusive OR) gate outputs true only when the inputs are different. If both inputs are same (0,0 or 1,1), output is false (0). If inputs are different (0,1 or 1,0), output is true (1). It is widely used in comparisons and error detection.