Which of the following is an example of ecological diversity?

a. The diversity of plants and animals in a rainforest
b. The variety of genes in a population
c. The different types of rocks in a desert
d. The variety of food sources in a city

a. The diversity of plants and animals in a rainforest