Fixing matching question (after quiz completed)

Fixing matching question (after quiz completed)

- Michael Hughes の投稿
返信数: 6
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers
We have a matching question type question, with 5 questions (and hence 5 answers) and 1 extra "wrong" answer.
Q1 Answer A
Q2 Answer B
Q3 Answer C
Q4 Answer D
Q5 Answer B
(q6) -- Answer F
(noting that Q2 & Q5 have the same answer)

Once the quiz was completed, it was discovered that the answer for one of the questions (Say Q2) was incorrect. 

The correct answer for the question should be the "extra wrong answer"'s value ("Answer F")

Is the correct way to "fix" this to update the answer for Q2 to be "Answer F", and remove the "(q6) --- Answer F" option?

Michael
Michael Hughes への返信

Re: Fixing matching question (after quiz completed)

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Sadly, this is not possible. A known problem.

It is bug MDL-5560. Sadly, it is only fixable with a major change (it requires a change in the underlying database structure for this question type) and I have never found time to do that.
Tim Hunt への返信

Re: Fixing matching question (after quiz completed)

- Hugo Ribeiro の投稿
画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
Tim,
Is it possible a similar thing happens on the "Select missing words" qtype?
Hugo Ribeiro への返信

Re: Fixing matching question (after quiz completed)

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Not necessarily, because "Select missing words" uses a different database structure.

However, I think you to be careful. If you have a question with question text:

Cat -> [ [1] ]
Dog -> [ [2] ]

And choices 1: Puppy, 2: Kitten.

Then, I think it works if you edit the question text to

Cat -> [ [2] ]
Dog -> [ [1] ]

but not if you try to swap the choices.

However, I am not 100% sure, I strongly recomment that you set this up in a test course, and see what happens, before you try making any edits to a real quiz. If you do try it, it would be very helpful if you can let us know what you fine.
Tim Hunt への返信

Re: Fixing matching question (after quiz completed)

- Hugo Ribeiro の投稿
画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
Thanks! Made a couple of experiments and found everything is fine if you only change the correct answer (like you've mentioned) to other choice number that belongs to the same group.
If you edit the question and change:
- choice's content OR
- to a choice belonging to another choice group (A,B,C,D,etc)

The student's given answer will change.

Do you think the new question versioning system will be able to deal with these changes?