The correct option is C 100μJ
In position-1, when the current 1 A flow through resistor so that time potential across the capacitor =(10−5×1)=5V
Now it is shifted to position-2 where in steady state it is again charge to 5 V, but with opposite polarity.
in both case energy stored is same i.e, Ui=Uf=12CV2 where (V=5V)
Total energy supplied by the lower battery is converted into heat. But double charge transfer (from the normal) takes place from this battery because the batteries are in opposite polarity.
Thus, Δq=CV−(−CV)=2CV
Heat produced = Energy supplied by the battery =ΔqV=2CV2=2×2×10−6×52=100μJ