Select the quiz and click the Quiz title.The screen shown below is the Edit tab.
Click the Actions dropdown in the top right corner, and select Compile as Course.The next screen – the one shown below – is the Add a new quiz page. Administrators can add quizzes to a course from this screen.
Select the course from the Courses dropdown.
Set the Allowed Attempts.
When done, click Save.
The next screen is the Edit Course page. Here you can edit course details, else you can close the tab.