A resistor, capacitor, and switch are all connected in series to an ideal battery of constant terminal voltage. Initially, the switch is open. What is the voltage across the resistor and the capacitor at the moment the switch is closed?
A)The voltage across both the resistor and the capacitor is zero.
B)The voltage across the resistor is zero, and the voltage across the capacitor is equal to the terminal voltage of the battery.
C)The voltage across both the resistor and the capacitor is equal to the terminal voltage of the battery.
D)The voltage across the resistor is equal to the terminal voltage of the battery, and the voltage across the capacitor is zero.
E)The voltage across both the resistor and the capacitor is equal to one-half of the terminal voltage of the battery.