Moodle quizzes can be set up so a student can attempt it multiple times. An instructor or designer can limit the number of attempts from 1-10, or to unlimited. When multiple attempts are allowed, the following grading methods are available for calculating the final quiz grade: Highest grade, Average grade, First attempt, or Last attempt. (Explanations for each grading method are given below.)
Setting a quiz for multiple attempts
Click the link to the quiz you want to modify from the course homepage.
Click Edit Settings in the Administration block (upper left) under Quiz Administration.
Scroll down and click the Grade heading to see the options.
Choose a number or choose Unlimited for Attempts allowed.
Choose a Grading Method. This determines which quiz score appears in the gradebook.
Highest grade: The highest score of all the attempts the student has made.
Average grade: The scores from all the attempts a student has made are added up, then divided by the number of attempts.
First attempt: The score from the first attempt, all other attempts are ignored.
Last attempt: The score from the last attempt, all other attempts are ignored.