Use this fact to answer the question: a switch is used to stop the flow of current in an electrical circuit

A switch is used to stop the flow of currents which causes Joule heating in
electrical circuit.