Answer: A magnet has two poles that is north pole and south pole. From the directional property of the magnet, we know that whenever a magnet is freely suspended, it is always aligned along the north and south direction of the earth.
It can also be identified using a test magnet whose poles are already known. From attraction property of magnet, we know that unlike poles attract with each other and like poles repel each other. Therefore, the pole of unknown magnet that attract to the south pole of the known magnet will be north pole and the other will be south pole.
Thus, by freely suspending the magnet and by using a test magnet, the unmarked poles of the magnet could be easily identified.