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 4: Line 4:


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.  
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.  
==At Runtine ==


[[Image:gfruntime.jpg|Gapfill runtime]]
[[Image:gfruntime.jpg|Gapfill runtime]]

Revision as of 19:13, 15 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.

Gapfill Edit

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.

At Runtine

Gapfill runtime


There is a drop down list of alternative delimiting characters ## {} and @@ which will allow a question in the form The {cat} sat on the {mat}. 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.

Each (correct) field is worth exactly 1 mark, so The [cat] sat on the [mat] has a maximum possible score of 2 marks. There is no concept of negative marking. The question supports the standard behaviours, hinting and combined feedback options.

Gapfill complete


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 and a shuffled list of correct and incorrect answers will be displayed with the question.

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 with the broken bar operator to act as an OR as in "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. https://docs.moodle.org/24/en/Embedded_Answers_(Cloze)_question_type

However it has many, many fewer features.