In Spanish, "el fruto" generally refers to the fruit of a plant or tree, emphasizing the botanical aspect of the fruit. On the other hand, "la fruta" usually refers to the edible fruit as food. The distinction is similar to that between "fruit" and "produce" in English.
fruitcake. See full dictionary entry for tarta below.