Why does a compass needle get deflected when placed in a magnetic field? is it because the north pole of the compass needle and north pole of the magnet deflect?
Compass needles work as a small bar magnet; when they are brought near to another bar magnet or a magnetic field the like poles will end up repelling, as the needle will be deflected.