In the figure given below iron filings are sprinkled on a cardboard perpendicular to which a current carrying copper wire runs. The other components of the circuit have their usual meanings
If the polarity of the battery in the circuit is changed then
The deflection of the compass needle gets reversed
Reversing the polarity of a circuit means connecting the positive terminal of the battery where the negative terminal was initially connected (and vice versa obviously!) Reversing the direction of current in the circuit reverses the direction of the magnetic field. As the direction of magnetic field reverses its direction, the deflection of the compass needle also reverses.