Question: What works by selecting for alleles that confer beneficial traits or behaviors, while selecting against those for deleterious qualities? Answer: natural selection
Natural selection works by selecting for alleles that confer beneficial traits or behaviors, while selecting against those for deleterious qualities.