Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38542

Short answer questions don't handle zeros with wild cards well when "0" is given by a student.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4.3, 2.5
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Quiz
    • Testing Instructions:
      Hide

      1) Import the attached question file (MoodleXML) (or otherwise create the example Cloze question below).
      2) Preview the question.
      3) Enter an answer of "0" for each question. Verify that all parts are marked correct.
      4) Enter an answer of "0 pairs" for each question. Verify that ONLY Parts 2 and 3 are marked correct.
      5) Enter an answer of "The answer is 0" for each question. Verify that ONLY Parts 2 and 4 are marked correct.
      6) You may also wish to check stand-alone Short-answer questions that are no embedded in a Cloze question.

      Show
      1) Import the attached question file (MoodleXML) (or otherwise create the example Cloze question below). 2) Preview the question. 3) Enter an answer of "0" for each question. Verify that all parts are marked correct. 4) Enter an answer of "0 pairs" for each question. Verify that ONLY Parts 2 and 3 are marked correct. 5) Enter an answer of "The answer is 0" for each question. Verify that ONLY Parts 2 and 4 are marked correct. 6) You may also wish to check stand-alone Short-answer questions that are no embedded in a Cloze question.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This is an issue in both normal Short Answer and SHORTANSWER questions in an Embedded Answers (Cloze) question. I've attached a Cloze question to make it easy to see all the possibilities.

      1) Import the attached question file (MoodleXML).
      2) Preview the question.
      3) Enter an answer of "0" for each question. Only the first question is marked as correct. All should be marked as correct.
      4) Enter an answer of "0 pairs" for each question. All are marked as expected.
      5) Enter an answer of "The answer is 0" for each question. All are marked as expected.

      I recently upgraded from 2.4.1+ to 2.4.3. Many students before the upgrade took a quiz with a similar question and it was graded correctly. A student doing a makeup after the upgrade was graded incorrectly.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13