With the switch open, there's no current in the circuit, and therefore
no voltage drop across any of the dissipative elements (the resistor
or the battery's internal impedance). So the entire battery voltage
appears across the switch, and the voltmeter reads 12.0V .