In biology, a gene is a section of the DNA sequence that has the information for the synthesis of a protein or an RNA, which is considered the trait related to that gene. Genes are also the basic unit of inheritance.
This means the right answer is a) a segment of DNA that codes for a protein