The right answer is D.
The change in the population of lady beetles during the generations is due to the genetic variability of the population (also called genetic diversity).
The gene that has been diversified in this case is the color gene of the carapaces of insects. 2 alleles exist in this case (one for the green color and the other for the yellow color).