Diatoms are one of the most common types of phytoplankton in marine habitats. Like plants, diatoms contain chlorophyll and produce glucose from which of the following?

A. O2 and ATP

B. CO2 and O2

C. ATP and H2O

D. CO2 and H2O