The correct option is D Both a and b are true.
Variation is the process by which an individual within a population can adapt to the changing environment. In an ecosystem, different niches will be filled by the population of different organisms due to their the ability to reproduce. Hence, reproduction leads to variation and increases the chance of survival.