Please choose the correct answer to the question: Wire was looped several times around an iron nail, and the wire's ends were connected to a battery. For which of these will this device most likely be used?

Answer1: to produce a heat source Answer2: to demonstrate frictional forces Answer3: to create a magnetic field Answer4: to generate a sound wave

Answer format: answer1/answer2/answer3/answer4