The correct option is D When freely suspended, it comes to rest in the Earth's north-south direction.
The needle of a magnetic compass, itself being a magnet, can attract all kinds of magnetic materials. In the absence of external magnets, it always comes to rest in the north-south direction due to the Earth's magnetic field. When a magnet is brought near it, it aligns itself according to the magnetic field of the magnet.