A bulb in staircase has two switches, one switch being at the ground floor and the other being at first floor. The bulb can be turned ON and also OFF by any one of the switch irrespective of the state of the other switch. The logic of switching of bulb resembles
- A. AND gate
- B. XOR gate
- C. OR gate
- D. NAND gate
Answer: B. XOR gate
Explanation: A staircase switching circuit toggles the output state whenever either switch is toggled (00→0, 01→1, 10→1, 11→0), which is the exact truth table of an XOR gate.