Which of the following events is caused by magnetic force?

a
A person gets a shock from a doorknob after walking across carpet.
b
Pieces of clothing stick together after being in a clothes dryer.
c
The needle of a compass points toward Earth's North Pole.
d
Objects are constantly pulled toward the center of Earth.

The event caused by magnetic force is:

c. The needle of a compass points toward Earth's North Pole.