What do you call someone who whines about not getting 100% in an exam?

In American English this kind of person, one who is close to perfect but not quite and seeks those extra points, is called a

grade grubber

They are complaining in order to get those few extra points that, to everyone else, they don't really seem to need. It is a very light pejorative.