NCERT Electromagnetism 1 - Oersted Effect - Electricity: Magnetic and Heating Effects
Question: What happens to a magnetic compass placed near a current-carrying straight wire when the switch is closed?
Answer: The compass needle deflects from its North-South orientation because electric current through the wire generates a surrounding magnetic field.
Full step-by-step NCERT solution with diagrams on Something by Zero.