Moodle

Allow question types to validate responses before grading

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: None
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    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.

Issue Links

Activity

Hide
Tim Hunt added a comment -

Fixed in 2.1 dev now that MDL-20636 has been integrated.

For example, in the matching question, the system does not accept a response until the student has completed all parts of the question. If the question has not been completed, the student is warned.

Show
Tim Hunt added a comment - Fixed in 2.1 dev now that MDL-20636 has been integrated. For example, in the matching question, the system does not accept a response until the student has completed all parts of the question. If the question has not been completed, the student is warned.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: