When plants undergo photosynthesis, they make sugar. Why sugar? Because, it is one of their resources they need to survive. I know that they also need oxygen and water. Carbon dioxide is also vital in their survival. I hope this helps!
DNA and RNA both produce proteins, but RNA copies itself and moves out of the nucleus while DNA stays inside the nucleus and produces proteins. Also DNA helps more in cell division, while RNA helps in making proteins.