Which of these can be used as a rectifier in electric circuits?
Resistor.
Transformer.
Transistor.
Diode.