The correct option is D both (a) and (c)
Nucleoside is a compound formed by the union of a nitrogen base with a pentose sugar. It is a component of nucleotide. Each nucleotide is composed of smaller units; a nitrogen base, a pentose sugar and a phosphate group.
Hence, the component which is present in both nucleotides and nucleosides are pentose sugar and nitrogenous base.
Hence, option (d) is correct.