Pergunta de entrevista da empresa Amtrak

What's the difference between a diode and transistor?