Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I have to say, the design philosophy of the Moodle quiz is that it should not be for you, the developer of a question type, to limit the options that teachers have for how they teach (and assess) their students.

It is strongly encouraged that you develop question types that are good for learning/practice/being fun to enagage with, without the marks necessarily being important.

But, the way the design is supposed to work is:

  • The question type sets up the activity that the student is required to do.
  • The question behaviour controls the flow of that interaction (e.g. Interactive with multiple tries vs. Deferred feedback.)
  • And other aspects of the experience (e.g. marks for each question, and how much information is visible at any time) is controlled by quiz settings.

So, do you really need to break that pattern, even if you hope that teachers will use your question in a particular way? Just asking.

(Other question types can and do break that pattern. E.g. Essay questions are always manually graded, even in an interactive quiz, and CodeRunner questions always use a form of Adaptive behaviour.)

The testing that you did with the description question types is sensible. Please let us know what you work out.

Average of ratings:Useful (1)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Yes. If the attempts still exist (which is not guaranteed, because Previews don't really count, and could be deleted at any time) then you can change them to be real attempts.

The difference between preview and normal attempts is just stored in the quiz_attempts database table, in the column 'preview' which will contain either 1 (for previews) or 0 (for normal attempts).
Average of ratings:Useful (2)