A full wave rectifier circuit consists of two p-n junction diodes, a centre-tapped transformer, capacitor and a load resistance. Which of these components remove the ac ripple from the rectified output?
(1) p-n junction diodes
(2) Capacitor
(3) Load resistance
(4) A centre-tapped transformer