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: Gapfill question type.

Gapfill question type: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 2: Line 2:


It is possible to select dropdown or gapfill mode. Dropdown shows a list of all possible answers in each field and gapfill shows only an empty field with no list of options to select.
It is possible to select dropdown or gapfill mode. Dropdown shows a list of all possible answers in each field and gapfill shows only an empty field with no list of options to select.
By default marking is not case sensitive. So if the student enters CAT in a field of the form [cat] it will be considered correct. The editing form has an option to make an individual question case sensitive.


The editing form offers a field for adding wrong or distractor options. These only make sense in dragdrop or dropdown mode. Wrong answers must be entered as a comma delimited list.  
The editing form offers a field for adding wrong or distractor options. These only make sense in dragdrop or dropdown mode. Wrong answers must be entered as a comma delimited list.  

Revision as of 16:04, 10 August 2012

The gapfill question type allows the creation of questions with multiple answers by using special characters. For example The [cat] sat on the [mat] will create a question with two gaps where the answers are cat and mat. There is a drop down list of alternative dlimiting characters ## {} and @@ which will allow a question in the form The {cat} sat on the {mat}. By default the student will see the questions in dragdrop mode where they can use the mouse to drag the answers from a displayed list into the matching field. The javascript only updates the text contents of the field, so even in this mode it is possible to type the answers into the field.

It is possible to select dropdown or gapfill mode. Dropdown shows a list of all possible answers in each field and gapfill shows only an empty field with no list of options to select.

By default marking is not case sensitive. So if the student enters CAT in a field of the form [cat] it will be considered correct. The editing form has an option to make an individual question case sensitive.

The editing form offers a field for adding wrong or distractor options. These only make sense in dragdrop or dropdown mode. Wrong answers must be entered as a comma delimited list.

It is possible to use regular expressions in answers, for example if you wanted both the use and UK spelling of colour as an answer you could add a field as What [color|colour] is the sky? More complex regular expressions should also work.

This question was designed to be simpler to use than the core Cloze question type. However it has fewer features. For example Cloze supports per field feedback and many other features.