When multiple attempts are allowed, there are different ways you can use the grades to calculate the student's final grade for the quiz.
The final grade is the highest (best) grade in any attempt.
The final grade is the average (simple mean) grade of all attempts.
The final grade is the grade gained on the first attempt (other attempts are ignored).
The final grade is the grade gained on the most recent attempt only.