Why does the needle of a magnetic compass deflect when it is kept beside a current carrying wire?
Due to the magnetic effect of current
A current carrying wire always produces a magnetic field around it and due to this magnetic field the needle of magnetic compass deflects.