How to make a quiz with user scoring

How to make a quiz with user scoring

Simple answer, make a quiz, add scoring to it.

Detailed Answer: Make a Quiz
This would be a bootstrap page with a form on it, the form will have questions and multiple choice answers, using checkbox groups you can assign a numeric value to each checkbox, so an incorrect answer could be a score of 0 while a correct answer could be a score of 1 or 5 or whatever you want.
This could be a multi page form with a next button and no way to go back and change you previous answers and the answers could be saved to a database table.

At the end of the quiz after the user submits their last answer the sum of all the scores can be totalled in the results page and displayed to the user.

With the little information provided this is the best answer I can give, however if you give more detail I could expand on the answer if needed, but basically no matter what type of quiz you want to put together it could work in the same way, by saving the answers to a database row you can then do some math on the answers given at the end.

Tip: It would be easier if you have a single page quiz rather than multi page, and if you do want multi page then rather just use a combination of show/hide sections on a single page so you are not passing variables and values from one physical page to another which makes the process far easier.

2 Likes

Thank you