1. The amount of oxygen is a good indicator of photosynthesis occurring because oxygen is produced as a byproduct of photosynthesis. During photosynthesis, plants use carbon dioxide and water to produce glucose (a type of sugar) and oxygen gas. The oxygen gas is released into the atmosphere as a waste product, which is why we see bubbles coming out of the leaves of the plant during photosynthesis.
2. Yes, the dependent variable could have been the production of glucose instead of oxygen. To test for the production of glucose, we would need to use a chemical test, such as the Benedict's test, which detects the presence of reducing sugars like glucose. We could extract the plant material and test for the presence of glucose in the sample, comparing it to a control sample that did not undergo photosynthesis. Alternatively, we could use a colorimetric assay that detects the amount of glucose present in the sample by measuring the absorbance of a specific wavelength of light.