Sanjeev ranks seventh from the top and twenty eight from the bottom in a class. How many students are there in the class ?

Answer: D. 34
Clearly, number of students in the class = (6 + 1 + 27) = 34.