Concept:A magnet that is free to turn in a horizontal plane lines up with the Earth's magnetic field and comes to rest in the magnetic north-south direction. An unmagnetised steel bar has no preferred direction.
Solution:The steel bar is suspended horizontally at its midpoint, so it is free to rotate like a compass needle.
If it is magnetised, it
always settles in the magnetic N-S direction, however often it is disturbed. An unmagnetised bar comes to rest in any random direction.
Being attracted by a magnet (option D) is not conclusive: unmagnetised steel is also attracted, by induced magnetism.
Being attracted by both poles of a magnet (option B) actually shows the bar is
not magnetised.
Settling in the E-W direction (option C) does not happen for a free magnet.
Key point: The paper printed option B as "is repelled by a magnet". Repulsion is also a sure test of magnetism, so two options were correct; option B has been changed to "is attracted by both poles of a magnet" so that only A is correct.
Answer:Option A (always settles in the magnetic N-S direction)