Clarify the role of each component: The nitrogenous base can be one of adenine, guanine, cytosine, thymine (in DNA), or uracil (in RNA). The pentose sugar is either deoxyribose (in DNA) or ribose (in RNA). The phosphate group links the nucleotides together in a chain.