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

Allow question types to validate responses before grading

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.3
    • None
    • Questions
    • None
    • MOODLE_19_STABLE

    Description

      Suppose answering a particular question type involves typing some particularly complex syntax. Then the educational goals are better served if we do not penalise simple syntax errors. Here are two examples:

      1. Suppose we want to create a version of the short answer question type that automatically spell check's the student's answer, so their answer is only marked after they have corrected any spelling mistakes.

      2. Süreç Özcan's JUnit question type. Here the student's goal is to write some code that passes a set of unit tests given by the teacher. In this case, we may want the option to let the student verify that the code they have typed compiles without errors before they have to submit it for grading.

      There was a vague attempt to implement this once before (for example, there is an QUESTION_EVENTVALIDATE constant defined at the top of lib/questionlib.php) but it never went very far.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: