Domanda di colloquio di Amtrak

What's the difference between a diode and transistor?