Gene: The basic biological unit of heredity or A segment of deoxyribonucleic acid (DNA) needed to contribute to a function via RNA and protein production.
They are located on the chromosomes that are present within the nucleus within eukaryotes and lie in a nuclear membrane devoid region (nucleoid) within prokaryotes.