it should be "bake a cake" and not "cook a cake". baking is when you put something in an oven-toaster-griller, and cooking is when you put something on the stove-top.