The atmosphere traps a part of the Sun’s heat that is reflected from Earth’s surface. This effect, called the greenhouse effect, is primarily responsible for the moderate average temperatures on Earth. What component of the atmosphere causes this to occur?
A) The ozone layer
B) The layers of the atmosphere
C) Gases such as oxygen and nitrogen
D) Gases such as carbon dioxide and methane