Cake - Mixture of flour, ghee or oil, sugar & leavening agent. Cake is baked.
Pastry - Mixture of wheat flour, butter, sugar & subjected to baking.
Pie - A shallow container is lined with pastry & the container is filled with a sweet mixture. Pie is baked.
Apple Pie - Very popular & symbol of traditional American home cooking.