The correct answer is D. Rectifier.
A rectifier is a device that converts alternating current (AC) to direct current (DC). This is done by using a semiconductor device, such as a diode, to allow current to flow in only one direction.
A transformer is a device that transfers electrical energy from one circuit to another without changing the frequency of the electricity. This is done by using two coils of wire that are wrapped around a ferromagnetic core.
A dynamo is a device that converts mechanical energy into electrical energy. This is done by using a rotating coil of wire that is placed in a magnetic field.
An oscillator is a device that generates an alternating current signal. This is done by using a feedback loop to amplify a small signal until it reaches a desired amplitude.
In conclusion, a rectifier is the only device that can convert alternating current to direct current.