After creating quiz questions you can make specific questions worth only bonus points or make the questions mandatory for students to answer before moving on to other questions.
After logging into your course, open the Assessments drop-down menu and click on Quizzes.
Click the Drop-Down arrow next the quiz and select Edit.
Select Edit Values.
Check the Bonus box or the Mandatory box. Then click Save and Close.