rage / quizzes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple choice grading policy for multiple selectable answers: You need select n correct options to get the quiz item right.

HegePI opened this issue · comments

enum MultipleSelectedOptionsGradingPolicy {
  NeedToSelectAllCorrectOptions,
  NeedToSelectNCorrectOptions,
}

quiz_item:

multiple_selected_options_grading_policy MultipleSelectedOptionsGradingPolicy
integer multiple_selected_options_grading_policy_n

min 1 oikein

[x] Oikein
[x] Oikein
[ ] Oikein
[ ] Väärin
[ ] Väärin

The relevant code branch is where the quizItem.multi is true:

quizItemAnswer.correct = quizItem.multi