The correct option is B Compass works at all the places within the Earth's magnetic field.
A magnetic compass works at all places on the Earth but within its magnetic field influence. In space, very far from the Earth, the compass will not work as it needs an external magnetic field to balance in a particular direction.