6. When the current is switched on through a wire, a compass needle kept nearby gets deflected from its north-south position. Explain.
When the current passes through the wires, it behaves like a magnet and rises to a magnetic field around it which exerts a magnetic force on the compass needle and reflects it from a North-South position.