Respuesta :
From my experience from playing with magnets the answer would be D. This is also B is none magnetic and A could be a choice as will it's just not as strong because there is less iron present.
The magnetic field is produced by an electric current in an electromagnet, so I believe the answer is the last picture, which turns the current on and off.