When the current is switched on through a wire, a compass needle kept nearby gets deflected from its north-south position. Explain.

When electric current is allowed to pass through a wire, the compass needle will behave like a tiny magnet and will suffer a deflection from its north south position, Tis deflection is a effect of electric current i.e. magnetic effect.