The correct answer is option D, that is, nitrogen and phosphorus.
Nucleic acids refer to the macromolecules comprising oxygen, hydrogen, phosphorus, and carbon. They are the small biomolecules or the biopolymers, playing an essential role in all the known forms of life.
They comprise nucleotides that are the monomers formed of three constituents, that is, a 5-carbon sugar, a nitrogenous base, and a phosphate group. If the sugar is obtained from ribose as deoxyribose, then the polymer is DNA, and if the sugar is a compound ribose, then the polymer is RNA.