Final answer:D. Nucleic acidNucleic acids (DNA and RNA) contain nitrogenous bases (adenine, guanine, cytosine, thymine, and uracil) as part of their nucleotide structure. Carbohydrates and lipids do not contain nitrogenous bases. While some amino acids in proteins contain nitrogen, they are not nitrogenous bases in the same way as those found in nucleic acids.