A switch S is closed in the circuit shown in figure