All night study sessions suck, but like everything else, they're easier if you keep things in perspective and maintain a sense of humor. It's also important to avoid beating yourself up mentally for getting into this situation. That won't do you any good, so just resolve to make the best of things. And don't panic. Yeah, you're probably not going to ace the task at hand, but if you work consistently, you probably will do well enough. Best of luck!