Plants perform photosynthesis in the presence of sunlight. The products of photosynthesis are sugar and oxygen. This means that the amount of sugar molecules in the plant will increase over the course of a sunny day, as the plant carries on photosynthesis.
A water molecule consists of two atoms of hydrogen linked by covalent bonds to the same atom of oxygen. Atoms of oxygen are electronegative and attract the shared electrons in their covalent bonds.