studentquiz / moodle-mod_studentquiz

Moodle-Plugin
GNU General Public License v3.0
38 stars 38 forks source link

Shuffle choices in questions and self quizes #79

Closed miroi closed 5 years ago

miroi commented 5 years ago

Hello Frank,

with the fresh StudentQuiz module (v3.2.1 2018121800) we discovered problem in self quizes, where multiple choice questions have option of shuffling answers.

When you prepare the self quiz with at least 2 multiple choice questions with shuffling answers, the second, third... questions do get their answers shuffled upon pressing the check button. This sometimes causes accepting wrong answers, although correct answers were typed, because the shuffling changes the order of answering possibilities.

Here is such example - 2 question (import as Moodle XML), https://drive.google.com/file/d/1z1Qty4opjJ-AkVaheSm8IQBIDasQ1_2M/view?usp=sharing . When you practise all 2 questions in self Quiz, the shuffling of the second question answers causes accepting wrong answer, although correct answer was typed before pressing the "check" button.

miroi commented 5 years ago

This behaviour happens also with all other types of question which have the shuffling option (like matching).

muqiuq commented 5 years ago

Does this issue also occurs using the Quiz that is part of moodle core? Reason for this question: StudentQuiz uses the question implementation of moodle core.

miroi commented 5 years ago

Hi, no, with the core Quiz module questions with shuffling option "on" are behaving right. This is because upon entering the Quiz shuffle-allowed answers shuffle only once.

However, in StudentQuiz's "Quiz" this ill shuffling happens from the 2nd question upon pressing check, so correct answer get identified as incorrect.

muqiuq commented 5 years ago

Thanks for the bug report. It has been fixed.

miroi commented 5 years ago

Many thanks ! Awaiting the next release of StudentQuiz.

miroi commented 5 years ago

Looking at https://github.com/frankkoch/moodle-mod_studentquiz/releases , I guess it will be the 3.2.2 version with this issue fixed. Am I right ?

frankkoch commented 5 years ago

Yes, 3.2.2 will be released very soon.