A 2-way switch works as follows: Both switches ON → Light OFF Both switches…
2021
A 2-way switch works as follows: Both switches ON → Light OFF
Both switches OFF → Light OFF
One switch ON and the other OFF → Light ON
Which logic gate can be used to implement this?
- A.
OR
- B.
AND
- C.
NAND
- D.
XOR
Attempted by 117 students.
Show answer & explanation
Correct answer: D
In binary logic, the XOR gate follows the rule that the output is "High" (1) if and only if the inputs are different. When the inputs are the same (both 0 or both 1), the output is "Low" (0).