The correct answer is: D. no article
The word "best" is an adjective that describes Ram. Adjectives do not usually take articles.
In this case, Ram is the only student in the class, so there is no need to use an article to specify which student is the best.
If there were more than one student in the class, we could use an article to distinguish between them. For example, we could say "Ram was the best student in the class, and Sita was the second best."
However, in this case, Ram is the only student in the class, so there is no need to use an article.