Explain the working of a BJT (Bipolar Junction Transistor) as a switch.
In a BJT used as a switch, applying a small current to the base terminal allows a larger current to flow between the collector and emitter terminals. When the base current is removed, the switch is 'off', and no current flows through the collector-emitter path. This on-off action enables BJTs to control and amplify electronic signals in a circuit.