A generator uses electromagnetic induction to create current, this means that we need to move the magnet near a conductor to create the current or to move the conductor near the magnet. For a generator we usually move the magnet near a coil; therefore, the answer is D.