|
|
I entered two possible answers in the short-answer questions which were to be used in a random matching question. One of the possible answers was worth 100% and the other was only partially correct (50% or less). However, only the partially-correct answers were used in the drop-down list in the random matching question. Obviously, the ones which should have been used are those worth 100%.
Plus: if there are more than one fully-correct answer (100%) in the short-answer questions, I believe both answers should be included in the drop-down list of the random matching question.
|
|
Description
|
I entered two possible answers in the short-answer questions which were to be used in a random matching question. One of the possible answers was worth 100% and the other was only partially correct (50% or less). However, only the partially-correct answers were used in the drop-down list in the random matching question. Obviously, the ones which should have been used are those worth 100%.
Plus: if there are more than one fully-correct answer (100%) in the short-answer questions, I believe both answers should be included in the drop-down list of the random matching question. |
Show » |
|
There is code in there already that is supposed to pick the highest scoring answer - I'm not sure yet why it didn't work in this case.
From P. S. (p_stencel at wp.pl) Tuesday, 25 March 2003, 04:49 PM:
Actually, it always pulled the lowest-grade answers. I didn't experiment with many different cases, though.
From Bernard Boucher (bernard.boucher at cjonquiere.qc.ca) Sunday, 16 May 2004, 08:25 AM:
real bug
Missing line in moodle/mod/quiz/lib.php around 872
$bestfraction = $questionanswer->fraction;
foreach ($questionanswers as $questionanswer) {
if ($questionanswer->fraction > $bestfraction) { $bestanswer = $questionanswer; $bestfraction = $questionanswer->fraction; }
}
Without that line the last graded answer was always choosen.
Bernard
From Martin Dougiamas (martin at moodle.com) Wednesday, 19 May 2004, 10:53 AM:
Thanks, Bernard - checked in.
From Martin Dougiamas (martin at moodle.com) Wednesday, 19 May 2004, 10:53 AM:
Nice job, BTW!