How to lock a quiz
First, open up the quiz you wish to lock. Then, select Update this Quiz.
On the next page, you can choose to apply timed access by setting open and close dates and times for the quiz. You can keep students from accessing a quiz from the drop-down menu next beside the Visible option. Lastly, you can make a quiz available only to a certain group.
When you have finished, click Save and Display.