A test cross is required to find out the genotype of both the plant.
(A) Garden pea
(Homozygous red)
If the F1 generation produces all purple flower the parent would be homozygous dominants, i.e., pp
(Heterozygous red)
If the F1 generation produces purple and white flowers in 1:1 ratio, the parent would be heterozygous, i.e., Pp.