When you need to recover a deleted quiz or assignment module from your course, you can do by following these steps:
In the course you want to recover data from, in the browser's address bar, you will notice the URL of the course displayed.
Add "/undelete" to the end of the URL
The system will navigate you to the page for restoring deleted data.
Video Tutorial on Recovering Data