A 2 way switch works as follows: Both switches ON = light off
A 2 way switch works as follows:
Both switches ON = light off
Both switches OFF = light off
One switch ON and other OFF = light on
Which gate can be used to implement this?
Show answerHide answer
Correct answer: (D) XOR
Explanation
The light is on only when the two inputs differ, which is exactly the XOR truth table: 0,0→0; 1,1→0; 0,1 or 1,0→1.