What is the difference between a diode and a transistor in electronics?
A diode is a two-terminal device that allows current to flow in only one direction. It is mainly used for rectification (converting AC to DC), voltage regulation, and protection circuits.
A transistor is a three-terminal device (e.g., BJT or FET) that can act as a switch or amplifier. It controls a large current with a smaller input current/voltage, making it essential in signal amplification, digital logic circuits, and power control.