GMail removes classes from the email body. If you rely on classes to apply styles, they will not work. Solution is to inline your CSS. Learn how in this post.
Worried about your programming exam? Do not be afraid, here are some tips that may help you out. Beware though, it’s just an experiment.