Answer
When a bulb is connected to a battery, then the energy of the battery is transferred into voltage. Once the bulb receives this voltage, then it converts it into light and heat energy. Hence, the transformation of energy in the given situation can be shown as:
Chemical Energy → Electrical Energy → Light Energy + Heat Energy.