When an electric current is passed through any wire, a magnetic field is produced around it. Then why an electric iron connecting cable does not attract iron objects when electric current is switched on through it?
When an electric current is passed through any wire, a magnetic field is produced around it. Then why an electric iron connecting cable does not attract iron objects when electric current is switched on through it?

Answer:

In the presence of an electric current flowing through a wire, it is true that a magnetic field is

A magnetic field is created when an electric current flows across a wire. But these magnetic fields are weak.
A connecting cable’s magnetic field is too weak to attract surrounding items. Moreover, cables’ metallic wires are covered by a cover that prevents magnetic fields from escaping the cable.