ExxonMobil interview question

Difference between a alternator and generator