C
Below is a question with multiple-choice answers. Choose the correct option based on your reasoning.

### 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?

### Choices:
A. to produce a heat source
B. to demonstrate frictional forces
C. to create a magnetic field
D. to generate a sound wave

### Answer:
