Your Moodle version

Question types: All-or-Nothing Multiple Choice

qtype_multichoiceset
Maintained by Picture of Jean-Michel Védrine Jean-Michel Védrine
The all-or-nothing multiple choice question is a version of the core multi-answer multiple choice question with modified grading. In an all-or-nothing multiple choice question, a respondent can choose one or more answers. If the chosen answers correspond exactly to the correct choices defined in the question, the respondent gets 100%. If he/she chooses any incorrect choices or does not select all of the correct choices, the grade is 0%.
13k
531
6

All or Nothing Question
This is a multiple-choice, multiple-response question type that was created by
Adriane Boyd and is now maintained by Jean-Michel Vedrine (vedrine@univ-st-etienne.fr).

Description

The all or nothing question is adapted from the existing multichoice question.
The main difference from the standard Moodle multiple choice question type is
in the way that grading works.
The teacher editing interface is slightly modified as when creating the question, the teacher just
indicates which choices are correct.

Grading:

In an all-or-nothing multiple choice question, a respondent can choose one or more answers.
If the chosen answers correspond exactly to the correct choices defined in the question, the respondent gets 100%.
If he/she chooses any incorrect choices or does not select all of the correct choices, the grade is 0%.
Before using this questiontype, teachers must really think if this grading is what they want.

Contributors

Picture of Jean-Michel Védrine
Jean-Michel Védrine (Lead maintainer)
Picture of Adriane Boyd
Adriane Boyd: Original Author
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Sat, Apr 19, 2014, 12:47 AM
    Jean-Michel - Many thanks for sharing this plugin with the Moodle community.

    Please provide a documentation URL. You are welcome to create your documentation in Moodle Docs, See http://docs.moodle.org/dev/Plugin_documentation for more information. The README looks to have most of the information so you could just point to that or create a Moodle Docs page based off of it.

    You may want to consider adding a screenshot so folks can have an idea of what the question type looks like when installed.

    I noticed that many of the copyrights reference previous authors. It is preferred that all of the files that you have modified for this plugin have your name listed (or added) as the copyright holder.

    I was successfully able to install he plugin and it appears to function as expected so I am going to go ahead and approve it; however, when you have a chance it would be good to tidy things up. Peace - Anthony
  • Anthony Borrow
    Sat, Apr 19, 2014, 12:52 AM
    I ran the code checker on this and the only thing that showed up were the notices that Default timezone is required since PHP 5.4. Thanks for following the Moodle coding guidelines! Peace - Anthony

    Files found: 17

    question/type/multichoiceset/edit_multichoiceset_form.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/lib.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/question.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/lang/en/qtype_multichoiceset.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/styles.css
    question/type/multichoiceset/tests/helper.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/tests/questiontype_test.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/tests/walkthrough_test.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/tests/question_test.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/backup/moodle2/restore_qtype_multichoiceset_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/backup/moodle2/backup_qtype_multichoiceset_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/backup/moodle1/lib.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/db/upgrade.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/db/upgradelib.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/version.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/questiontype.php - 1 error(s) and 0 warning(s)
    question/type/multichoiceset/README.txt

    Total: 15 error(s) and 0 warning(s)
  • Picture of German Valero
    Sat, Apr 19, 2014, 10:38 AM
    Hi,
    I hope you don't mind that I started a Documentation page for this add-on at http://docs.moodle.org/26/en/All_or_nothing_multiple_choice_question_type .

    I also added this plugin to the list at http://docs.moodle.org/26/en/Third-party_question_types

  • Picture of Peter Diedrichs
    Fri, May 23, 2014, 9:53 PM
    We have a problem:
    - allowing multiple attempts, quiz set to grade last attempt and deferred feedback
    - answering the question correct on the first attempt
    - in 2nd attempt leaving the correctly answered all-or-nothing question as it is (correctly answered, 1p)
    - the question is marked as correct, but gets "0p" after 2nd attempt

    In the same quiz we use regular multiple choice questions, and they act as they should in multiple attempts.

    We have the same problem in 2.4.7 and 2.6.1
  • Picture of Jean-Michel Védrine
    Sat, May 24, 2014, 12:28 AM
    Hello Peter,
    Thanks for reporting this problem. I was able to reproduce it.
    It is the first time such a problem is reported, maybe because not so many users have "Each attempt build on last" activated when using All or nothing questions ?
    I will study the problem and try to find a fix, but unfortunately I will not be able to do so before a week or 2.
    In fact I am puzzled because the all or nothing question type inherits most of its code from the regular multichoice question type so I need to understand the problem.
  • Picture of Jean-Michel Védrine
    Sun, May 25, 2014, 3:40 PM
    Hello Peter,
    In fact this is a bug in the core multichoice question (see MDL-45686 for technical details) I submitted a patch and after review it will be incorporated in a future weekly release of Moodle 2.6 and 2.7.
    But if you are unable to upgrade your Moodle in a near future, or can't wait, it would be easy to add a few lines in question/type/multichoiceset/question.php to correct the problem. Are you able to edit this file ? If you are OK I can explain what to do.
  • Picture of Peter Diedrichs
    Sun, May 25, 2014, 4:04 PM
    Jean-Michel, excellent work! Thank you!
    We will upgrade to latest 2.6 in a month or so, but if you have the instructions that would be really appreaciated - this was found in testings of our upcoming 2.6 emvironment, but we also use the question type in our 2.4 and don't know if someone might be using it with multiple attempts.
  • Picture of Linda Raymond-Hagen
    Tue, Oct 7, 2014, 5:21 AM
    Hi
    Is there a 2.4 version available?
    Thanks,
    Linda
  • Richard Samson
    Mon, Apr 13, 2015, 7:44 PM
    We cannot export questions of this type, in any of the three formats. We would like to be able to export in Moodle XML format and import in another course. Is this possible? How? (We are using Moodle 2.6.3+)

    Thanks,

    Richard
  • Picture of Jean-Michel Védrine
    Tue, Apr 14, 2015, 12:14 AM
    Hello Richard,
    The only import/export format that question types plugins can easily support are GIFT and Moodle XML, no support for plugins is available in Moodle code for other format. I never implemented GIFT import export because nobody asked for it (and in fact I think it would be hard to do for qtype_multichoiceset because there is no way to differentiate multichoice and multichoiceset questions) but Moodel XML import and export is implemented and works.
    Tell me what exact version of multichoiceset you use and I will do some tests to verify it is working as expected.
Please login to post comments