Read this tip to make your life smarter, better, faster and wiser. LifeTips is the place to go when you need to know about Study Skills/Homework Resources and other Student topics.
Getting a good rest is a very important thing to put on your study agenda. Not only for your body, but also for your brain. It is much better to study and rest, then to cram all night and be dead tired for the test or exam the following day. With a good rest, you will be in a better position to logically and rationally choose more accurate or correct answers.
What's the point of staying up all night to cram for a test, when you (and your brain) will be to tired to function, let alone remember anything that you studied.
I think that rather than "then to cram all night " - you maybe meant to write "than to cram all night " ! (however I have a friend that (circa 30 years ago) used to do exacly as you have written ! - he thought it worked for him ! )
Also "will be to tired to function" maybe meant to be "will be too tired to function" - maybe I should have taught English rather than tried to be an Engineer !