The PN junction diode is used as
An amplifier
A rectifier
An oscillator
A modulator
It can be used to convert ac into dc (rectifier)