Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Question Engine 2:Developing the Multianswer (Cloze) Question Type.

Development:Question Engine 2:Developing the Multianswer (Cloze) Question Type

From MoodleDocs
Revision as of 22:38, 6 April 2010 by Pierre Pichet (talk | contribs) (New page: This page will describe details about implementing the multianswer ( Cloze) question type in the new question engine code. The detailed day-to-day interactions between Tim Hunt and me (pi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page will describe details about implementing the multianswer ( Cloze) question type in the new question engine code.

The detailed day-to-day interactions between Tim Hunt and me (pierre Pichet) can be found in MDL-25

The multinaswer question type is more an enclosure for subquestions than a real question type as shortanwer or multichoice. The subquestions are enclosed in the multianswer question text using a specific coding i.e

{1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}

In the pre engine multianswer the following subquestuons are allowed

  • short answers (SHORTANSWER or SA or MW), case is unimportant,
  • short answers (SHORTANSWER_C or SAC or MWC), case must match,
  • numerical answers (NUMERICAL or NM),
  • multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text
  • multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or
  • multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.

( As the new engine allow tostore easily more subquestios parameters we de