Moodle

Incorrect grading of multi-page quiz with build on last attempt

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: Quiz
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE

Description

On a quiz with 2 or more pages and set with build on last attempt, attempts after the first are graded incorrectly. The page where the student clicks "submit all and finish" is graded correctly. Pages that no answers are changed and next page is clicked are graded incorrectly. No score is given for those questions, not even a 0/1. It seems like the questions are skipped. If you make changes to a question, the click save without submitting, then click next page, those questions will be scored, i.e. have a 0/1 or a 1/1. But others on that same page that you didn't make changes to, will not be scored.

Issue Links

Activity

Hide
Tim Hunt added a comment -

Paulo, do you have any suggestions about what might be happening here?

Show
Tim Hunt added a comment - Paulo, do you have any suggestions about what might be happening here?
Hide
Paulo Matos added a comment -

Hi Tim!
This remainds me of an old bug MDL-7631, which is on the same code area of the bugfix for MDL-8958.
At the time (and even now) I didn't quite understand the fix for #7631... but it worked!
I'm kind of busy this week, I'll dig a little on this on mid of next week.

Show
Paulo Matos added a comment - Hi Tim! This remainds me of an old bug MDL-7631, which is on the same code area of the bugfix for MDL-8958. At the time (and even now) I didn't quite understand the fix for #7631... but it worked! I'm kind of busy this week, I'll dig a little on this on mid of next week.
Hide
Tim Hunt added a comment -

I'm pretty sure this was reported independently, and I fixed it. However, I can't find the other bug now. If you can still reproduce this in 1.8.2+ or 1.9, please reopen this bug with detailed instructions about how to reproduce. Thanks.

Show
Tim Hunt added a comment - I'm pretty sure this was reported independently, and I fixed it. However, I can't find the other bug now. If you can still reproduce this in 1.8.2+ or 1.9, please reopen this bug with detailed instructions about how to reproduce. Thanks.
Hide
Michael Spall added a comment -

I have just tested this on Moodle 1.8.2+ updated from Friday 9/14/2007 and it is still broken.

To reproduce:

1. Create a quiz with
a. Attempts allowed: "unlimited attempts"
b. Each attempt builds on the last: "Yes"
c. Questions per page: "3"
d. Students may review, check all boxes (not important to reproduce the bug, but saves you logging in out as student and teacher, to see the problem)
2. Add 10 multiple choice questions to the quiz, so there are multiple pages. I added all MC questions that had One or multiple answers: "One answer only". Set each question to be worth 1 pt and set maximum grade to 10 pts.
3. Log in as student
4. Take the quiz and answer the first nine questions correctly, answer question 10 incorrectly.
5. Start another attempt.
a. Don't make any question changes on the first page.
b. Click page "4"
c. Change answer to question 10 to the correct answer.
d. "Submit all and finish"
e. On the review of attempt 2, click show all questions on one page. You will see that all answers are correct, but a score of 1/10 is given. The first 9 questions will have no marks for submission. The last question will have "Marks for this submission: 1/1"
6. Start another attempt and play around with a mixture of page clicks and answer changes before finally submitting.

Show
Michael Spall added a comment - I have just tested this on Moodle 1.8.2+ updated from Friday 9/14/2007 and it is still broken. To reproduce: 1. Create a quiz with a. Attempts allowed: "unlimited attempts" b. Each attempt builds on the last: "Yes" c. Questions per page: "3" d. Students may review, check all boxes (not important to reproduce the bug, but saves you logging in out as student and teacher, to see the problem) 2. Add 10 multiple choice questions to the quiz, so there are multiple pages. I added all MC questions that had One or multiple answers: "One answer only". Set each question to be worth 1 pt and set maximum grade to 10 pts. 3. Log in as student 4. Take the quiz and answer the first nine questions correctly, answer question 10 incorrectly. 5. Start another attempt. a. Don't make any question changes on the first page. b. Click page "4" c. Change answer to question 10 to the correct answer. d. "Submit all and finish" e. On the review of attempt 2, click show all questions on one page. You will see that all answers are correct, but a score of 1/10 is given. The first 9 questions will have no marks for submission. The last question will have "Marks for this submission: 1/1" 6. Start another attempt and play around with a mixture of page clicks and answer changes before finally submitting.

People

Vote (6)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: