I canot solve either of these questions.
1. The bulb will have a very non-linear resistence with temperature so even if you integrate the input waveform, you will not be able to calculate power.
2. Two 1.2V cells (not batteries) in series will not yield 5V. The questioner should be more careful to describe what is required.