Question types ::: qtype_gapfill
Maintained by Marcus Green
Cloze (fill in the blanks) question type with VERY simple question creation syntax. Can do drag drop, dropdowns or gapfill questions

Gapfill 1.4

Moodle 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
Released: Saturday, January 11, 2014, 6:30 PM
Gapfill question type V1.4 for Moodle

A simpler Cloze question type that only supports fill the the blank type questions.
Teacher can define the question with square braces to define the missing words. For example
The [cat] sat on the [mat]. Alternative delimiting characters can be defined during question edit
for example The #cat# sat on the #mat# can be valid.

If the dropdown or dragdrop options are set in the question edit form, it can display
a shuffled selection of correct and wrong answers. These can then can be selected via
dropddropdown lists or javascript powered drag and drop functionality.

This question type was written by Marcus Green

This question type was created and tested under Moodle 2.5 and 2.6. It has also been tested with Moodle 2.4.
It will not work with versions of moodle prior to 2.1.

Place the files in a directory


Where moodle is webroot for your install.

Version 1.1 includes a count of correct answers and clears incorrect responses in interactive mode
Version 1.2 will colour duplicate answers yellow when discard duplicates mode is used (see help)
Version 1.3 toggle regex for plain string compare. Useful for maths, html and programming language questions
Version 1.4 added support for touch devices such as Apple iOS phones and tablets (iPhone/iPad) and Android devices

Version information

Version build number
Version release name
Can be updated to
1.5 (2006082513)
Stable version
MD5 Sum
Supported software
Moodle 2.1, Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5, Moodle 2.6
  • Latest release for Moodle 2.1
  • Latest release for Moodle 2.2
  • Latest release for Moodle 2.3
  • The more recent release 1.6 (2006082514) exists for Moodle 2.4
  • The more recent release 1.8 (2006082516) exists for Moodle 2.5
  • The more recent release 1.91 (2016100801) exists for Moodle 2.6

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit to finish the installation