In genetics, the basic unit of heredity is known as a gene. Genes are segments of DNA that carry the instructions for the development, functioning, growth, and reproduction of all known organisms and many viruses. Each gene occupies a specific location on a chromosome and can have different forms known as alleles.
Which of the following statements correctly describes the role of genes in heredity?