Difference between revisions of "Combined question type"

Jump to: navigation, search

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

(Answer section)
Line 5: Line 5:
  
 
The four question types that are included are
 
The four question types that are included are
    •  Numeric (n.b. based on Variable numeric and not Numerical)
+
* Numeric (n.b. based on Variable numeric and not Numerical)
    •  Pattern match
+
* Pattern match
    •  OU multiple response
+
* OU multiple response
    •  Select missing word
+
* Select missing word
 +
 
  
 
==Response fields==
 
==Response fields==
 +
 
The response fields have the form
 
The response fields have the form
 
     [[<identifier>:<type>{:<options>}]]
 
     [[<identifier>:<type>{:<options>}]]
Line 18: Line 20:
  
 
Numeric and pmatch have the option to limit the size of the input box.
 
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.
+
* '''__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.
+
* '''_____''' (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’.
 
If no ____ is present the input box follows the question stem and is a ‘full single line’.
  
 
Multiresponse can be displayed vertically or horizontally
 
Multiresponse can be displayed vertically or horizontally
    •  v   for vertical display. This is the default.
+
* '''v''' for vertical display. This is the default.
    •  h   for horizontal display. If the rendering is too long it wraps at a choice.
+
* '''h''' for horizontal display. If the rendering is too long it wraps at a choice.
  
 
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
 
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]].
+
e.g. The quick brown <nowiki>[[4:selectmenu:2]]</nowiki> jumps over the lazy <nowiki>[[4:selectmenu:4]]</nowiki>.
  
 
Where the choices are, cow, fox, cat, dog.
 
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.
+
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==
 
==Answer section==
 +
 
The sub-sections of the form are presented in the order that they are first mentioned in the question.
 
The sub-sections of the form are presented in the order that they are first mentioned in the question.
  
Line 56: Line 59:
  
 
Feedback is given in the order
 
Feedback is given in the order
    -  Combined feedback
+
* Combined feedback
    -  Feedback to any incorrect response in the order given.
+
* Feedback to any incorrect response in the order given.
    -  any Hint.
+
* any Hint.
  
 
Weightings should add to 100%.
 
Weightings should add to 100%.
 +
  
 
==Combined feedback==
 
==Combined feedback==
Line 67: Line 71:
  
 
The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.
 
The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.
 +
  
 
==Settings for multiple tries==
 
==Settings for multiple tries==
 +
 
This section is used when a try is not totally correct and the test author has chosen to run the test as ‘Interactive with multiple tries’.
 
This section is used when a try is not totally correct and the test author has chosen to run the test as ‘Interactive with multiple tries’.
  
 
The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.
 
The number of correct responses is counted as the number of correct input boxes plus choices from multiresponse and selectmenu.
 +
  
 
==Scoring==
 
==Scoring==
 +
 
There is no negative marking of gaps that are filled incorrectly.
 
There is no negative marking of gaps that are filled incorrectly.
 
If the question is used in 'interactive with multiple tries' style the marking is modified as follows:
 
If the question is used in 'interactive with multiple tries' style the marking is modified as follows:
 
     1.  The mark is reduced for each try by the penalty factor.
 
     1.  The mark is reduced for each try by the penalty factor.
 
     2.  Allowance is made for when a correct choice is first chosen providing it remains chosen in subsequent tries.
 
     2.  Allowance is made for when a correct choice is first chosen providing it remains chosen in subsequent tries.
 +
  
 
==See also==
 
==See also==
 +
 +
* Combined question type in the plugins database
 +
* [https://github.com/moodleou/moodle-qtype_combined The combined question type code on github]
  
 
[[Category:Contributed code]]
 
[[Category:Contributed code]]

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

Scientific notation enables the input of 10n.

combineda2.png

The Pattern match syntax can be found here Pattern match documentation

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.

Weightings should add to 100%.


Combined feedback

combinedcf.png

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


Settings for multiple tries

This section is used when a try is not totally correct and the test author has chosen to run the test as ‘Interactive with multiple tries’.

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


Scoring

There is no negative marking of gaps that are filled incorrectly. If the question is used in 'interactive with multiple tries' style the marking is modified as follows:

   1.  The mark is reduced for each try by the penalty factor.
   2.  Allowance is made for when a correct choice is first chosen providing it remains chosen in subsequent tries.


See also