GATE Exam  >  GATE Questions  >  A bulb in a staircase has two switches, one s... Start Learning for Free
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 answer is option 'C'. Can you explain this answer?
Verified Answer
A bulb in a staircase has two switches, one switch being at the ground...
View all questions of this test
Most Upvoted Answer
A bulb in a staircase has two switches, one switch being at the ground...
The logic of switching the bulb in the given scenario resembles an XOR gate. Let's understand why.

Explanation:

An XOR gate, also known as an exclusive OR gate, produces a true output only when the number of true inputs is odd. In other words, it returns true if the inputs are different.

In the given scenario, we have two switches controlling the bulb. Let's denote the switches as S1 and S2, and the bulb as B. We can represent the states of the switches and the bulb as follows:

- S1 = 0 (OFF) or 1 (ON)
- S2 = 0 (OFF) or 1 (ON)
- B = 0 (OFF) or 1 (ON)

Now, let's consider the different combinations of switch states and their corresponding bulb states.

Switch State: S1 = 0, S2 = 0
- In this case, both switches are OFF.
- The bulb state is also OFF (B = 0).

Switch State: S1 = 0, S2 = 1
- In this case, S1 is OFF and S2 is ON.
- The bulb state is ON (B = 1).

Switch State: S1 = 1, S2 = 0
- In this case, S1 is ON and S2 is OFF.
- The bulb state is ON (B = 1).

Switch State: S1 = 1, S2 = 1
- In this case, both switches are ON.
- The bulb state is OFF (B = 0).

Analysis:

By analyzing the different combinations, we can see that the bulb is ON only when the switches have different states (S1 = 0, S2 = 1 or S1 = 1, S2 = 0). In all other cases, the bulb is OFF.

This behavior matches the logic of an XOR gate. An XOR gate returns true (1) only when the inputs are different, and false (0) when the inputs are the same.

Therefore, the logic of switching the bulb in the given scenario resembles an XOR gate.
Explore Courses for GATE exam
A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer?
Question Description
A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer?.
Solutions for A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer?, a detailed solution for A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? has been provided alongside types of A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A bulb in a staircase has two switches, one switch being at the ground floor andthe other one at the first floor. The bulb can be turned ON and also can be turnedOFF by any one of the switches irrespective of the state of the other switch. Thelogic of switching of the bulb resemblesa)an AND gateb)an OR gatec)an XOR gated)a NAND gateCorrect answer is option 'C'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev