Which energy transformation takes place in a generator?

Question 2 options:

mechanical to electrical


chemical to radiant


electrical to mechanical


radiant to electrical