Which of the following components of an electrical circuit is a source of voltage?
A. a switch
B. a battery
C. a resistor
D. a light bulb