Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Combined question type.

Combined question type: Difference between revisions

From MoodleDocs
Line 29: Line 29:
Selectmenu must be followed by the correct choice.
Selectmenu must be followed by the correct choice.


Note that it is possible to have multiple choices that use the same menu choices e.g.
Note that it is possible to have multiple choices that use the same menu choices
    The quick brown [ [4:selectmenu:2]] jumps over the lazy [ [4:selectmenu:4]].
e.g. The quick brown [ [4:selectmenu:2]] jumps over the lazy [ [4:selectmenu:4]].


Where the choices are, cow, fox, cat, dog.
Where the choices are, cow, fox, cat, dog.
Line 36: Line 36:
After adding new input fields and to remove unwanted input fields click the ‘Verify the question text and update the form’ button.
After adding new input fields and to remove unwanted input fields click the ‘Verify the question text and update the form’ button.
At this point your question text will be validated.
At this point your question text will be validated.
==Answer section==
The sub-sections of the form are presented in the order that they are first mentioned in the question.
For our example there are four sub-sections. For open ended responses we are only expecting to match correct responses and as such the ability to match and comment on specific incorrect responses is not supported.


==See also==
==See also==


[[Category:Contributed code]]
[[Category:Contributed code]]

Revision as of 13:55, 3 July 2013



The Combined question incorporates features of four existing question types into one composite question.

combinedqtype.png

The four question types that are included are

   •   Numeric (n.b. based on Variable numeric and not Numerical)
   •   Pattern match
   •   OU multiple response
   •   Select missing word

Response fields

The response fields have the form

   [[<identifier>:<type>{:<options>}]]

<identifier> may be alphanumeric up to 8 characters. In our example we’ve just used numbers. <type> is one of numeric, pmatch, multiresponse or selectmenu.

Numeric and pmatch have the option to limit the size of the input box.

   •   __10__   is the width of the displayed input box in characters alone.
   •   _____  (i.e.) without a number provides a box equivalent in length to the number of underscores.

If no ____ is present the input box follows the question stem and is a ‘full single line’.

Multiresponse can be displayed vertically or horizontally

   •   v   for vertical display. This is the default.
   •   h    for horizontal display. If the rendering is too long it wraps at a choice.

Selectmenu must be followed by the correct choice.

Note that it is possible to have multiple choices that use the same menu choices e.g. The quick brown [ [4:selectmenu:2]] jumps over the lazy [ [4:selectmenu:4]].

Where the choices are, cow, fox, cat, dog.

After adding new input fields and to remove unwanted input fields click the ‘Verify the question text and update the form’ button. At this point your question text will be validated.

Answer section

The sub-sections of the form are presented in the order that they are first mentioned in the question.

For our example there are four sub-sections. For open ended responses we are only expecting to match correct responses and as such the ability to match and comment on specific incorrect responses is not supported.

See also