Moodle

adding questions allowed after students have taken the quiz

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.3
  • Fix Version/s: None
  • Component/s: Quiz
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_13_STABLE

Description

Even after some of the students have taken the quiz, the teacher can still add new questions to it, which means that a student who got a 100% score when attempting the quiz will eventually have a lower grade, because he did not answer the question which was not there when he was taking the quiz.

Adding new questions should be disallowed after the quiz has been taken. Or - alternatively - it could be allowed, but with the effect of all current scores being reset. Obviously, the consequences of doing it should be communicated to the teacher in BIG LETTERS, and s/he should be made to confirm the decision at least 7 times

Activity

Hide
Martin Dougiamas added a comment -

From James Miller (yositune at yahoo.com) Wednesday, 26 March 2003, 11:11 PM:

I know that Postgresql supports triggers; maybe implemented a trigger to hold the old total values for each attempt when the total question gets touched?

Additionally, I wonder if this is fixed by this bug I filed last week? http://moodle.org/bugs/bug.php?op=show&bugid=316

From Martin Dougiamas (martin at moodle.com) Thursday, 27 March 2003, 10:28 AM:

No, this is not related to MDL-316. You can't regrade questions that haven't been answered yet.

Basically, I think quizzes should not allow addition of new questions at all once students have already made attempts. Teachers can just make a new quiz if they want to do that.

From Bernard Boucher (bernard.boucher at cjonquiere.qc.ca) Saturday, 15 May 2004, 11:19 PM:

I think we can't stop teacher admin editing quiz. Sometimes quiz are used only as self formative evaluation with a grade that will not be accounted in gradebook, or teacher test and modify his test.

I suggest a strong indication when editing a quiz:

For that add these lines in :

moodle/mod/quiz/edit.php around line 210 just before

print_simple_box_end();

if($attemptcount = count_records_select(quiz_attempts, quiz = '$modform->instance' AND timefinish > 0)) { $strattemptexist = get_string(attemptexist,quiz); $usercount = count_records(quiz_grades, quiz, $modform->instance); $strusers = get_string(users); $strviewallanswers = get_string(viewallanswers,quiz,$attemptcount); echo <p align=left><a href=\report.php?id=$modform->instance\><font color=#FF0000 ><blink>$strattemptexist $strviewallanswers ($usercount $strusers)</blink></a></p>; }

That require a new stringname in moodle/lang/en/quiz.php

$string['attemptexist'] = 'Attention: quiz already attempted :';

I hope it may help.

If so I will try others bugs.

Bye,

Bernard

From Bernard Boucher (bernard.boucher at cjonquiere.qc.ca) Sunday, 16 May 2004, 12:39 AM:

Hi again,

after re-reading your comment I see that you prefer to totally restrict questions addiditon to attempted quiz.

I will suggest code for that too if you prefer.

Bye,

Bernard

From Martin Dougiamas (martin at moodle.com) Wednesday, 19 May 2004, 11:49 AM:

No, your way is better, I've just checked it in.

Thanks, Bernard!

Show
Martin Dougiamas added a comment - From James Miller (yositune at yahoo.com) Wednesday, 26 March 2003, 11:11 PM: I know that Postgresql supports triggers; maybe implemented a trigger to hold the old total values for each attempt when the total question gets touched? Additionally, I wonder if this is fixed by this bug I filed last week? http://moodle.org/bugs/bug.php?op=show&bugid=316 From Martin Dougiamas (martin at moodle.com) Thursday, 27 March 2003, 10:28 AM: No, this is not related to MDL-316. You can't regrade questions that haven't been answered yet. Basically, I think quizzes should not allow addition of new questions at all once students have already made attempts. Teachers can just make a new quiz if they want to do that. From Bernard Boucher (bernard.boucher at cjonquiere.qc.ca) Saturday, 15 May 2004, 11:19 PM: I think we can't stop teacher admin editing quiz. Sometimes quiz are used only as self formative evaluation with a grade that will not be accounted in gradebook, or teacher test and modify his test. I suggest a strong indication when editing a quiz: For that add these lines in : moodle/mod/quiz/edit.php around line 210 just before print_simple_box_end(); if($attemptcount = count_records_select(quiz_attempts, quiz = '$modform->instance' AND timefinish > 0)) { $strattemptexist = get_string(attemptexist,quiz); $usercount = count_records(quiz_grades, quiz, $modform->instance); $strusers = get_string(users); $strviewallanswers = get_string(viewallanswers,quiz,$attemptcount); echo <p align=left><a href=\report.php?id=$modform->instance\><font color=#FF0000 ><blink>$strattemptexist $strviewallanswers ($usercount $strusers)</blink></a></p>; } That require a new stringname in moodle/lang/en/quiz.php $string['attemptexist'] = 'Attention: quiz already attempted :'; I hope it may help. If so I will try others bugs. Bye, Bernard From Bernard Boucher (bernard.boucher at cjonquiere.qc.ca) Sunday, 16 May 2004, 12:39 AM: Hi again, after re-reading your comment I see that you prefer to totally restrict questions addiditon to attempted quiz. I will suggest code for that too if you prefer. Bye, Bernard From Martin Dougiamas (martin at moodle.com) Wednesday, 19 May 2004, 11:49 AM: No, your way is better, I've just checked it in. Thanks, Bernard!
Hide
Michael Blake added a comment -

Temp reopen to assign to a valid user BBoucher

Show
Michael Blake added a comment - Temp reopen to assign to a valid user BBoucher
Hide
Michael Blake added a comment -

Reassigning to a valid user.

Show
Michael Blake added a comment - Reassigning to a valid user.

People

Dates

  • Created:
    Updated:
    Resolved: