terminal A in the circuit shown in the figure is connected to B by a key and an alternating current I(t)=I 0 ​ cos(ωt)