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

Multichoice questions used by random qtype can result in negative marks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.5.4, 3.6.2
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      When used individually neither the Single-answer nor the Multiple-answer Multichoice question can result in a negative score no matter how much you add negative grade to the options and how bad the student answers.

      If the question is a random question and takes it questions from a question bank category with multichoice questions values below 0 are generated. This does only apply to the Single-answer Multichoice questions.

      To replicate: Import the attached course and enrol a user with role editingteacher and a user with role student.

      As student, go to the quiz and choose just the bad answers. Submit the attempt.

      As teacher, go and see the quiz attempts.

      WHAT YOU EXPECT: the student gets mark 0 for the question.
      WHAT ACTUALLY HAPPENS: the student gets a negative mark for the question. 

        Attachments

          Activity

            People

            • Assignee:
              lucaboesch Luca Bösch
              Reporter:
              lucaboesch Luca Bösch
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: