Never stay awake until like 4am or do an allnighter before exam. If you have to do it at least have minimum 4 hour sleep. Cramming information in your head for taking exam extremely tired is not worth it and you will probably do worse in terms of scores.