Which statement describes how the atmosphere gains energy by convection? Select the correct answer from the following

A. Air warmed by the ground rises
B. Energy moves from the clouds to the air
C. The ground warms the air just above it
D. Solar energy warms gases that make up the air

D. Solar energy warms gases that make up the air