Does pulling an all-nighter mean not to sleep all night doing something? Or could you have slept also though a little.
But it seems irrational to think that you would study for the whole night without even cat naps, to prepare for an exam. It's sure that what you've studied would be useless.
The night before the exam, I sleep like a log and wake up early in the morning scan my books. University all-nighter is out of my list of activities.