The diagram shows four magnetic compasses placed at the same distance from a central point XXX.

Which of the following is most likely to be at point XXX?
a permanent bar magnet oriented horizontally
a current-carrying solenoid oriented vertically
a flat circular current-carrying coil parallel to the page
a straight current-carrying wire perpendicular to the page