The primary purpose quizzes as they are generally applied to to check to make sure you've been attending lectures, reading the material, doing the homework, etc... They may indirectly prepare a student for a test, but mostly it is to enforce the work plan (which should help a student on the test).