Combined question type: Difference between revisions

From MoodleDocs
Line 56: Line 56:
     -  Feedback to any incorrect response in the order given.
     -  Feedback to any incorrect response in the order given.
     -  any Hint.
     -  any Hint.
==Combined feedback==
[[File:combinedcf.png]]
The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.


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


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

Revision as of 14:09, 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.

combineda1.png

combineda2.png

combineda3.png

combineda4.png

These response matching sections follow the rules of the single questions that they are taken from.

Feedback is given in the order

   -   Combined feedback
   -   Feedback to any incorrect response in the order given.
   -   any Hint.

Combined feedback

combinedcf.png

The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.

See also