Explain the working of an AND gate with the help of two switches.
Digital Electronics - Logic Gates · Question 35 of 56
Explain the working of an AND gate with the help of two switches.
Solution:
Concept: In a switch circuit an open switch stands for logic 0 and a closed switch for logic 1; a glowing bulb stands for output 1.
Step 1 — Describe the circuit. Two switches and are connected in series with a battery and a bulb, as in the figure.

Step 2 — Explain the working. There is only one path for the current, and it passes through both switches. So the bulb glows only when and are both closed. If either switch (or both) is open, the circuit is broken and the bulb does not glow.
Step 3 — Match it with the AND gate. Writing closed = 1, open = 0, glow = 1 and no glow = 0 gives exactly the AND truth table:
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Therefore, two switches in series act as an AND gate: the bulb glows () only when both and are closed.
