Which of the following is a circuit component whose function includes changing an open circuit to a closed circuit?
A. wire
B. switch
C. power source
D. load