The correct option is D Both the statements are true.
Greenhouse gases warms the planet and prevents the surface from freezing, thus providing life sustaining temperatures on the planet. Gases like carbon dioxide, methane and water vapor work like a blanket to retain heat. The gases do this by absorbing the heat and radiating back to the surface of Earth.