Drag-and-Drop Matching

Question types ::: qtype_ddmatch
Maintained by DualCube Team
Drag-and-drop matching is a simple solution that is meant to help learners with matching quizzes. The students must simply "drop" their responses into a pre-defined space from the list of options that are available. The drag-and-drop interface makes learning fun and interesting.
Latest release:
3266 sites
941 downloads
98 fans
Current versions available: 3

What Drag-and-Drop Matching Offers!

Matching questions in Moodle are created by supplying several questions and their correct answers. Enhance the matching questions of the quiz by adding a drag-and-drop interface. Hence promotion a fun and relaxing learning environment.


For further details on this plugin kindly read the documentation availablehttps://dualcube.com/docs/drag-and-drop-matching/ 

  • Automatic Answer Space Generator - No need to break a sweat as a predefined space is created whenever the matching quiz appears. 

  • Mutiple Option as Answers - Students need to simply select the correct answer from the option list. This helps create a better learning environment and saves time. 

  • Enhanced user interface - The drag-and-drop interface is extremely simple to use, as students simply 'drag' and 'drop' the correct answer. 

  • Automatic Grading - After responding to the quiz, the student will automatically receive a grade based on their input.


Try out this easy to use solution if you want to make learing activities fun. 



Screenshots

Screenshot #0

Contributors

DualCube Team (Lead maintainer)
Jean-Michel Védrine: Previous maintainer
Adriane Boyd: Original author
Coolie and Andrew
Andrew Lyons: Javascript upgrade to YUI3
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Mathieu Domingo
    Thu, 1 Mar 2018, 4:50 PM
    Hello,
    I had an error when trying to duplicate a quiz : error/error_qtype_ddmatch_subquestion_missing_in_db
    This was thrown by question/type/ddmatch/backup/moodle2/restore_qtype_ddmatch_plugin.class.php function process_match($data)

    After investigation, $data->questiontext value was something like $@PAGEVIEWBYID*12345@$ instead of http://mywebsite/mod/page/view.php?id=12345 in the database which explain why the test if(!isset($this->questionsubcache[$data->questiontext][$data->answertext])) failed

    I patched it like that :
    if (!isset($this->questionsubcache[$data->questiontext][$data->answertext])) {
    $pattern="#\\$\\@PAGEVIEWBYID\\*([0-9]*)\\@\\$#";
    $replacement="https://mywebsite/mod/page/view.php?id=$1";
    $data->questiontext=preg_replace($pattern, $replacement, $data->questiontext);
    $data->answertext=preg_replace($pattern, $replacement, $data->answertext);

    if (!isset($this->questionsubcache[$data->questiontext][$data->answertext])) {
    throw new restore_step_exception('error_qtype_ddmatch_subquestion_missing_in_db', $data);
    }
    }

    This patch seems to work, but i don't know why my $data contains bad data :s. Have you any idea of the origin of this "value" $@PAGEVIEWBYID*12345@$ ?
    If i have time i will try to investigate more, but it was also looking like it goes through all questions of all quiz in the course to duplicate only one quiz with two question (which was not looking efficient when there is a lot of small quiz in the course :s)
  • Jean-Michel Védrine
    Thu, 1 Mar 2018, 8:21 PM
    Hello Mathieu,
    These bad data were created by a backup/restore or duplicate problem.
    @PAGEVIEWBYID and a lot of other expressions surrounded with @ are used during backup/restore
    Most probably the faulty questions come from another Moodle course or from a restored course, and of course these expressions should have been decoded during restore.
    So i don't understand why these data were left undecoded in the question text.
  • Ravi Kumar
    Tue, 12 June 2018, 9:37 PM
    Hi Guys,
    I have problem with drag and drop matching plugin.
    If my answer already placed in front of question and I submit the quiz in this case it showing message "Your answer is incorrect".
    Ex. My question have 2 options
    If by default question populate like this

    Question1 = Answer1
    Question2 = Answer2

    After submission it is always showing "Your answer is incorrect." while my answer is correct.


  • DualCube Team
    Thu, 14 June 2018, 7:59 PM
    Hi! Ravi,
    Thanks for getting in touch with us. Unless you drag and drop an answer, it won't take an answer by itself.
    So, you have to drag the right or wrong answer and drop it at the dropping field so that it recognizes what you have selected.
    Thank you.
  • Marcus Green
    Mon, 21 Jan 2019, 6:22 PM
    Is that screenshot from this question type? It looks like one from a core/ou question type. There are some that look more like it on this page https://docs.moodle.org/36/en/Drag_and_drop_matching_question_type
  • Jean-Michel Védrine
    Mon, 21 Jan 2019, 8:42 PM
    Yes I think that Marcus is right, this image has nothing to do with that plugin. I don't know who contributed to it but I will remove it and replace it with one from the documentation page.
  • Jean-Michel Védrine
    Mon, 21 Jan 2019, 8:45 PM
    Oops, I don't have the right to edit that page anymore (quite logical as I stopped maintaining this plugin) so I am unable to change that image!
  • DualCube Team
    Tue, 22 Jan 2019, 9:00 PM
    Dear Marcus,
    We are sorry for the delayed response. The screenshots are from this plugin: https://moodle.org/plugins/qtype_ddmatch. Thank you.
  • Profile picture of Harald Schnurbusch
    Mon, 1 Apr 2019, 5:00 PM
    Hi, the screenshot in the description above is not from Drag & Drop Matching but looks more like from Drag & Drop Marker: https://moodle.org/plugins/qtype_ddmarker.
  • Infinity Facts
    Mon, 1 Apr 2019, 11:38 PM
    Your post is awesome it will help me a lot Vidmate App Download
  • Sadique Mannan
    Tue, 2 Apr 2019, 5:31 AM
    Thank you very much for inspiring and letting us know about this:
    From BeingOptimist team.
  • Это я…
    Thu, 4 Apr 2019, 7:56 PM
    In version.php $plugin->version must be 2019040400, but not 2019040200
    Otherwise, the installation loops smile
  • Jean-Michel Védrine
    Thu, 4 Apr 2019, 10:07 PM
    Hello DualCube, maybe you could integrate all the fixes that are in my Github in the master branch see https://github.com/jmvedrine/moodle-qtype_ddmatch
    It is GDPR compliant, has security fixes, some Behat and phpunit tests.
  • Wazza
    Sat, 6 Apr 2019, 3:29 AM
    Installation does not work for me. It says there's an new update available, but when trying to install it, it just gets to the admin notification page. No errors are given.
  • Doug E. Wray
    Sun, 7 Apr 2019, 3:41 AM
    I am having the same trouble as Richard van Iwaarden: trying install using the Moodle (3.3.6) Web interface does not seem to work, either by clicking through the notifications page or by uploading a .zip file via drag and drop in the Web interface. I haven't tried installing via the command line (though permissions seem to be fine), however.
Please login to post comments