Pergunta de entrevista da empresa Rahi Systems

What is capacitor, how is it different from diode