Pregunta de entrevista de Tata Consultancy Services

Difference between transistor and diode