Exams › GATE › Technical
A bulb in a staircase has two switches, one switch being at the ground floor and the other one at the first floor. The bulb can be turned ON and also can be turned OFF by any one of the switches irrespective of the state of the other switch. The logic of switching of the bulb resembles
- an AND gate
- an OR gate
- an XOR gate
- a NAND gate
Correct answer: an XOR gate
Solution
The bulb's behavior is similar to an XOR gate because it can be ON when one switch is activated and OFF when both switches are in the same state. This means that the bulb's state changes only when one switch is toggled, which aligns with the XOR logic.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →