Given data:
* The voltage given is 12 volts.
* The value of the power given is 24 Watt.
* The time till which the lamp is used is,

Solution:
(a). The energy consumed by the lamp in time t is,

where P is the power of lamp, t is the time, and E is the energy consumed,
Substituting the known values,

Thus, the energy consumed by the lamp in 1 hour is 86.4 kJ.
(b). The power of the lamp in terms of voltage and current is,

where P is the power, V is the voltage and I is the current,
Substituting the known values,

Thus, the current flowing through the lamp is 2 A.