Why does a compass needle get deflected when brought near a bar magnet?
The compass needle has a magnet inside it, and when it is brought near the magnet, it gets deflected due to magnetic force between the two magnets. The South of the needle points towards magnetic North of the bar magnet and the North of needlepoint away from the North of the bar magnet. (Like pole attracts and unlike pole repels)