Solved! Go to Solution.
Open your course homepage, type /undelete after the URL, and hit enter to reload the new page. Locate your deleted quiz and click the restore button. Then, navigate to your assignments page and republish the quiz. This will restore the assignment and any scores that had been recorded.