Correct answer is (B) alleles of a gene
Mendel’s ‘law of segregation’ applies to the segregation of alleles of a gene during gamete formation.