Cognizant Interview Question

What is the difference between generator and alternator?