Energy supplied by battery
Charge supply by battery = Charge on capacitor = Q = CV
Energy supplied by battery = Work done by the battery = QV = (CV) (V)
=CV2
=10μF×4V
=40μJ
Thus, energy supplied by the battery is =40μJ.
Hence the correct option is (B).