Although I don't use it, Moodle does have methods that would not allow a student to progress until they receive a certain score on a quiz. Someone else, however, will have to guide you.
General help
How to loop questions? ..and not duplicate
This discussion has been locked so you can no longer reply to it.