The correct answer is C. It retains the heat inside by the greenhouse effect.

Glass is a transparent material that allows visible light to pass through it, but it absorbs infrared light. This means that when sunlight hits a solar cooker, the glass allows the visible light to pass through and heat up the food inside, but it traps the infrared light inside, which helps to keep the food warm. This is called the greenhouse effect, and it is the same principle that is used in greenhouses to keep plants warm.

Option A is incorrect because glass does not absorb sun's rays. Option B is incorrect because glass reflects sun's rays. Option D is incorrect because glass does not radiate heat better than metals.