EC > GATE 2013 SET-4 > Logic Gates
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
A
an AND gate
B
an OR gate
C
an XOR gate
D
a NAND gate

Correct : c

Let switch A = ground floor switch and switch B = first floor switch. Let 0 = switch down and 1 = switch up. The bulb is ON when the two switches are in opposite states (one up, one down) and OFF when both are in the same state (both up or both down).
Building the truth table:
A=0, B=0 → Bulb OFF (both down, same state) → Output = 0
A=0, B=1 → Bulb ON (opposite states) → Output = 1
A=1, B=0 → Bulb ON (opposite states) → Output = 1
A=1, B=1 → Bulb OFF (both up, same state) → Output = 0
This truth table — output is 1 only when inputs differ — is exactly the XOR gate (Exclusive OR). Toggling either switch always changes the bulb state regardless of the other switch, which is precisely what XOR does: flipping one input always flips the output.
AND gate gives 1 only when both inputs are 1 — does not match. OR gate gives 1 whenever either input is 1 — does not match (would never turn bulb OFF once either switch is ON). NAND gives 0 only when both are 1 — also doesn''t match. Only XOR matches perfectly.
Correct answer: C — XOR gate ✓

Similar Questions

In the circuit shown below, P and Q are the inputs. The logical function realized by the circuit shown below is
#108 MCQ
In the circuit shown, diodes D1, D2 and D3 are ideal, and the inputs E1, E2 and E3 are "0 V" for logic '0' and "10 V" for logic '1'. What logic gate does the ci...
#871 MCQ
A universal logic gate can implement any Boolean function by connecting sufficient number of them appropriately. Three gates are shown. Which one of the foll...
#893 MCQ

Related Topics

staircase bulb two switches XOR gate GATE 2013 GATE EC 2013 Set-4 Q24 bulb two switches logic gate resembles GATE EC XOR gate staircase switch toggle GATE digital logic gates GATE EC 2013 toggle switch XOR logic exclusive or GATE

Unique Visitor Count

Total Unique Visitors

Loading......