Amtrak interview question

What's the difference between a diode and transistor?