Hitachi Energy interview question

They asked about diode and transistor