Pregunta de entrevista de Rahi Systems

What is capacitor, how is it different from diode