A magnetic compass will be deflected if it is kept near a____________________?

A magnetic compass will be deflected if it is kept near a____________________?

A. charge in motion
B. charge at rest
C. both
D. none