A practical diode switch usually works by maintain one side of the diode at a bias point so that when a logic level is applied to the other point it will switch the diode from forward to reverse ...
A diode logic level step-up circuit. From Microchip app note DS41285A (PDF). For stepping up from 3.3V logic to 5V logic and assuming you are not safely within the TTL thresholds as described ...
The filament lamp is a common type of light bulb. It contains a thin coil of wire called the filament. This heats up when an electric current passes through it and produces light as a result.