Which of the following pairs are products of photosynthesis?
A: sugar and oxygen
B: chlorophyll and protein
C: light energy and nitrogen
D: water and carbon dioxide