What is the function of an electromagnet in an electric doorbell?
A
It acts as a switch to open the circuit.B
It acts as a switch to close the circuit.C
It repels a metal striker, which then pulls away from the bell.D
It attracts a metal striker, which then hits the bell.