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

### Question:
When an iron nail wrapped in a copper wire is attached to a circuit, it forms

### Choices:
A. a battery.
B. an engine.
C. an insulator.
D. an electromagnet.

### Answer:
