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: Drag and drop into text.

Drag and drop into text

From MoodleDocs


A drag and drop question type where missing words have to be dragged into gaps in a paragraph of text.

Moodle versions available

This question type is available for Moodle 2.1 to 2.9 from the Moodle plugins database.

How to create a question

  • Give the question a descriptive name to help you find it in the question bank. (Students won't see the name.)
  • Add the question to the text editor, using any formatting you wish.
  • Use double square brackets wo sets of square brackets '[[n]]' with a number in place of the word you wish the students to find:
dragdroptextquestion.png
  • Add the missing words or phrases in the correctly numbered boxes in the 'Choice' section. (You may add extra ones to make the question harder. If you tick 'Shuffle' the display order will be shuffled:
dragdroptextchoices.png


  • Limited formatting of text using <sub>, <sup>, <b>, <i>, <em> and <strong> is allowed.

Groups

  • Choices that are within the same Group are colour coded and may only be dropped in a gap with the corresponding colour. Choices that are marked as 'infinite' may be used in multiple locations.
  • In the example below, Group 1 are verbs and Group 2 are possessive adjectives:
dragdroptextgroupchoice.png
  • The students see Group 1 as white boxes and Group 2 as grey boxes:
dragdroptextgroupdisplay.png

It is not possible to have drag boxes containing multiple lines. If you want to drag long sentences - don't. Give each a label and drag the label.

Accessibility

Drag and drop questions are keyboard accessible. Use the <tab> key to move between the gaps and the <space> key to cycle around the possible choices for each gap.

Scoring and Feedback

All gaps are weighted identically. Only gaps that are filled correctly gain marks. There is no negative marking of gaps that are filled incorrectly. The scoring and feedback systems are similar to standard question types.

Is there a wildcard for blanks to be empty?

The only way to do this is to make a drag item that looks empty, and make students drag that into the boxes that should be empty. As the code ignores drag items that comprise only spaces, you will need to try to use something like a non-breaking space (easy to do with 1 click in the TinyMCE_editor, or type &nbsp in other Text editor).

More documentation

See also