B. There are both autotrophs (such as cyanobacteria and nitrifying bacteria) and heterotrophs (such as Escherichia coli) in prokaryotes, and B is correct;
C, the final product of protein hydrolysis is amino acid, C is wrong;
D, the basic unit of RNA is ribonucleotide, D error.
Therefore, choose: B.