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