Does the final task have to be an electric lightbulb?

No, but some sort of light must be switched on per rule 4.g.