In this task, you are given a question and an answer, you would be asked to create the sentence based on the Question-Answer provided. It should be contained within the Question-Answer provided.
Q: Question: Alternative current is produced when a magnet or coil does what? Answer: moves back and forth repeatedly
A: 
Alternative current is produced when a magnet or coil moves back and forth repeatedly.