I shouldn't think so because it gives you a HUGE sugar boost for a SHORT amount of time and then there is a sudden drop of energy level which would slow down. This of course isn't good for your progress in an exam.
I would advise eating healthier foods bc they release energy over long periods of time; keeps you full, and helps your brain. e.g. avocado