Q. Why does a compass needle get deflected when brought near a bar magnet?
The needle of a compass is a small magnet. That’s why when a compass needle is brought near a bar magnet, its magnetic field lines interact with that of the bar magnet. Hence, a compass needle gets deflected.