Answer: D
When the compass placed near the working of electric wire, the compass needle will be redirected towards the magnetic field created by wire.
The electric wire cause the magnetic field just like a magnet causes magnetic field.
The electric currents always produces their magnetic fields. When we put the compass near the electric wire the current passes through it, and the needle of the compass will not move in north or south, instead, the needle will be pointed in the direction of magnetic field created by the wire.