Genes are segments of deoxyribonucleic acid (DNA) that contain the code for a specific protein that functions in one or more types of cells in the body. Chromosomes are structures within cells that contain a person's genes. ... A trait is any gene-determined characteristic and is often determined by more than one gene.