Authors can limit the amount of quiz attempts users can take within a course. The Limit Quiz Attempts option designates the number of times a user can attempt to achieve the required percentage score for all quiz questions.
Users who exhaust their allotted attempts will not be able to retake the course. If the course is part of a program, users will still be able to continue to the next program item.
The default value for the Limit Quiz Attempts option is n/a, which allows users unlimited quiz attempts.
Open Course
On the Courses page, click the name of the course.
Open Course Settings
On the course details page, click the More Settings link.
Set Quiz Attempts Limit
Click the Limit Attempts toggle button [1]. In the Attempts to Pass field [2], enter the number of attempts you want allotted to users.
View Attempts Allotted
View the number of attempts allotted to users.