]> git.mjollnir.org Git - moodle.git/commit
New quiz option - "Each attempt builds on the last"
authorkaipe <kaipe>
Sun, 3 Aug 2003 23:00:45 +0000 (23:00 +0000)
committerkaipe <kaipe>
Sun, 3 Aug 2003 23:00:45 +0000 (23:00 +0000)
commit586b2c82ed58196ad9df5f91da6ab5c451b10afd
treef871a8f521f89c3e81daeb5cf76d610a34af2a9e
parentda2ad420864fee4abeccf9d7d7dd32231ead0a7d
New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
mod/quiz/attempt.php
mod/quiz/lib.php
mod/quiz/mod.html
mod/quiz/review.php
mod/quiz/version.php