Concept:If a student is r-th from the bottom in a class of N students, then rank from the top is N−r+1.Explanation:Total number of students is 42.Mahesh's rank from the bottom is 16.So, his rank from the top is:42−16+1=27Thus, Mahesh is 27th from the top.Answer:Option D. 27th rank.