When a 0.5 kW heater operates for 20 minutes, the electrical energy consumed is equal to
0.5 kW = 0.5×1000 watts = 500 W
Energy consumed in 1 second = 500 J (∵ 1 watt = 1 joule1‘s)
Energy consumed in 20 minutes = 500×20×60 J (∵1 minute=60 s)
= 600000 J
= 600 kJ