Why does a compass needle get deflected when brought near a bar magnet?
Answer
The compass needle itself is a tiny magnet.
When a bar magnet is brought near it, the bar magnet exerts its magnetic force on the compass needle.
Hence, it gets deflected.