The answer would be B. Earth is an electromagnet.
The Earth is a giant electromagnet. It's electromagnetic field is generated from the currents of electricity coming from molten metal flowing in the outer core of our Earth. The heat from the inner core causes convection and that is how electric current flows within Earth.