Solution


The LED glows when the voltage across it is high. From the circuit, the truth table is:
A = 0, B = 0 → Y = 1
A = 0, B = 1 → Y = 1
A = 1, B = 0 → Y = 1
A = 1, B = 1 → Y = 0
This is the output of a NAND gate.

Concept identifying a gate from a switch-LED circuit

Logic Gates in past papers

22 questions from this chapter have appeared across 18 exam years.