Cannot get multiple choice questions to score.

Created on 20 September 2024, 3 months ago

Not sure if I am missing something but no matter what I do I can't get a multiple choice question to give a score.

I have a test question, multiple choice, 4 options, option 2 and 3 are correct answers.

Even when I tick 2 and 3 as my answer I still get a score of 0.

Simple Scoring being off or on doesn't seem to make any difference.

Am I doing something wrong? What's the secret?

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡¬πŸ‡§United Kingdom arcaic Milton Keynes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @arcaic
    • 093a481b committed on 1.0.x
      Issue #3475833: Fix "Simple Scoring".
      
  • πŸ‡ΊπŸ‡¦Ukraine r_cheh

    The bug was fixed in branch 1.0.x, changes will be added in the next release, now you can apply a patch.
    But you need to take into account the formula that the user to calculate a score for not "Simple scoring" -
    round(($total_score / $max_score) * $question->getMaxScore(), 2);,
    where:

    • $total_score - sum of points of chosen answers
    • $max_score - sum of points of all correct answers
    • $question->getMaxScore() - max score of Question, if you need to get just the sum of answers you need set 1 here

    For example, you have a question with a max score of 5, there are 4 answers, with 2 correct answers, fist correct answer has 2 points, and the second correct answer has 1 point, during taking a quiz, user chooses the first right answer, so the score will be:
    round((2/(2+1))*5, 2)

  • πŸ‡ΊπŸ‡¦Ukraine r_cheh
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024