Which of the following best describes genes?

a: polymers of peptides used to make proteins
b: nucleotide sequences in dna that code for traits
c: pieces of rna that produce carbohydrates
d: collections of nucleic acids that generate energy