These three words are loosely ranked as to how much they count toward your grade.
In order of importance, they are (from least to most important): quiz, test and exam.
A test and exam may mean the same thing.
When I got my final "test" for my degree, I was given an oral exam. It was very important in determining whether I got my degree or not. I was nervous. I wouldn't have been nearly as nervous about a quiz. A test would have been somewhere in between, as far as effort and importance.