Plants create the majority of the oxygen we breathe through a process called photosynthesis. In this process plants use carbon dioxide, sunlight, and water to create energy. In the process they also create oxygen which they release into the air.
I hope that helps at least a little bit. Good luck on that exam.