Techkshetra / savsoftquizv6.0

Savsoft Quiz v6.0 - An open source and free solution to conduct online quiz or exams.
MIT License
34 stars 27 forks source link

Result always incorrect for Multiple choice / multiple answers #15

Open luisdant opened 2 years ago

luisdant commented 2 years ago

Use case: 3 correct options / 6 possible options

Steps to reproduce:

  1. Create a new question:

image

  1. Define correct answers: 1, 2 and 3.

image

  1. Add to a quiz, attempt, answer correctly and submit:

image

  1. Check the result:

image

Although the answers are correct, the result appears as incorrect.

luisdant commented 2 years ago

it happens because the score is divided by 3, resulting in 0.33. I've manually updated one option to .34 and it works.

image

santoshkumarhiremath commented 2 years ago

Our team testing this case. It is happening when marking 3 options as correct or if 1/(number of correct option) = more than 2 decimal value. (eg 1/3 = 0.3333333... , 1/6= 0.1666666... ) It will be fixed shortly..