Answer:
B
Step-by-step explanation:
You want the diagram that shows the correct setup for an electromagnet.
Electromagnet
An electromagnet is defined as a soft metal core that becomes a magnet when current is passed through a coil around it. Only diagram B shows a coil around a metal object. That coil is arranged in a circuit with a battery so that current will flow through the coil.
Diagram B shows the correct setup for an electromagnet.