The correct option is D. During the process of photosynthesis, carbon dioxide and water react together in the presence of sunlight energy to form glucose and oxygen. Glucose and oxygen are the product of photosynthesis. The chemical formula for glucose is C6H12O6 and that of oxygen is O2.