what is the function of an electromagnet in an electric doorbell?\nit acts as a switch to open the…

what is the function of an electromagnet in an electric doorbell?\nit acts as a switch to open the circuit.\nit acts as a switch to close the circuit.\nit repels a metal striker, which then pulls away from the bell.\nit attracts a metal striker, which then hits the bell.
Answer
Brief Explanations:
In an electric door - bell, when current flows through the electromagnet, it gets magnetized and attracts the metal striker. The striker then hits the bell to produce sound. The other options are incorrect as the electromagnet doesn't act as a switch to open or close the circuit in the described way, and it doesn't repel the striker.
Answer:
It attracts a metal striker, which then hits the bell.