Question types: All-or-Nothing Multiple Choice

Maintained by Picture of Jean-Michel VédrineJean-Michel Védrine, Picture of Eoin CampbellEoin Campbell
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%.
1601 sites
39 fans
Current versions available: 3

This is a multiple-choice, multiple-response question type that was created by Adriane Boyd and later maintained by Jean-Michel Vedrine. It is now maintained by Eoin Campbell.


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.


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 question type, teachers must really think if this grading is what they want.


Screenshot #0


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

Comments RSS


  • Picture of Alexander Okon
    Sat, Jan 19, 2019, 4:28 PM
    Unfortunately after upgrading to the latest version login to the moodle-Page is not longer possible for admins. There is no such problem for the students. But for admin the page after login (/admin/index.php) is completely blank / empty. Any ideas how to fix that issue?
  • Picture of Jean-Michel Védrine
    Sat, Jan 19, 2019, 4:52 PM
    Some answers to recent comments:
    To Bozan Zugec: sorry but this part of the plugin was contributed by somebody else, I know nothing about the mobile app, I don't have it running so I am unable to help fixing that problem
    To Cameron Hallowell: There is no easy way to upload multichoiceset questions using the GIFT format because this format is not "open": it wasn't created to easily allow new question types. On the contrary the Moodle XML format is more open and extensible. and I have created a plugin that import all multichoice questions as all or nothing questions, see So maybe you could try to create your questions as ordinary multichoice questions in a GIFT file, import the result into Moodle, export it as a Moodle XML file and re-import the result using qformat_multichoiceset. Of course this introduce more step to the process but maybe if you have a large number of questions to import that would result in a more rapid process than creating the questions one by one.
    To Alexander Okon: Sorry you have problem with the last update, but I can't see how the changes introduced by Eoin Campbell in the last version could cause that kind of problem. Maybe something has go wrong in the upgrade process and one of your files is corrupted ? try to replace all files in the question/type/multichoiceset subfolder by new ones freshly downloaded from the plugin directory. If this doesn't solve your problem go to the site administration and activate debugging to see if any error message is displayed that would help to diagnoze the problem.
    As a general note: If you want some help, it would be a lot better to post a message in the Quiz forum, answering to your comments on this page is very painful for me as there is no formatting, no way to include images or to attach files. Thanks
  • Picture of Eoin Campbell
    Wed, Jan 30, 2019, 6:28 AM
    This question type now supports the Moodle mobile app version 3.5 (I think) and 3.6, when running Moodle 3.5 or Moodle 3.6, thanks to code contributed by Zvonko Martinovic.
  • Picture of Bojan Zugec
    Fri, Feb 1, 2019, 4:35 PM
    Yes, I can now confirm that the plugin works with the mobile app version 3.5 and that is excellent. Thanks to all the contributors (Jean-Michel and Eoin) and especially to Zvonko Martinovic.
  • Picture of Eoin Campbell
    Fri, Feb 1, 2019, 8:09 PM
    Regarding batch uploading of multichoiceset questions, you can create questions in Microsoft Word and import them using the plugin. A Word template to support creating questions is available for download at
  • Picture of Cameron Hallowell
    Tue, Feb 12, 2019, 5:54 AM
    To Eoin, I have just had a look at the moodle2word stuff, it is brilliant! You have to do some customising of ordered lists, tables etc but that is a small price to pay for the other benefits.
  • Picture of Eoin Campbell
    Fri, Feb 15, 2019, 1:07 AM
    Thank you. You could consider marking it as a favourite if you like it. You might also like two related plugins for Atto and Books. cf.
  • Picture of Wade Noneya
    Wed, Apr 17, 2019, 11:18 PM
    Problem for a newcomer. We have been asked to host a course that, unknown to us, uses this plugin. We imported the backup course and then tested. At first we discovered this plugin by getting this error "coding error detected, it must be fixed by a programmer: Unknown question type multichoiceset".

    We did some research, found this plugin, and installed. NOW when a user encounters one of the questions using this format (we think) it gives a new error.... "Can not find data record in database table qtype_multichoiceset_options"

    Can you advise as to what I need to do to fix this? It's quite urgent, actually.

  • Picture of Eoin Campbell
    Wed, Apr 17, 2019, 11:57 PM
    Try restoring the course again now that the plugin is installed.
  • Picture of Jean-Michel Védrine
    Thu, Apr 18, 2019, 12:02 AM
    Hello Wade Noneya, if the plugin was installed after the question were imported, unfortunately all the multichoiceset questions that were imported or estored before the plugin installation are broken. This is not specific to multichoiceset question type plugin, it's the same problem when you import or restore questions and the corresponding plugin is not installed. Sorry.
    The best solution if you are able to do that would be to delete the imported course and import it again. If you are not able to do that and absolutely need to find a solution without deleting that course, send me a message and I will try to find a solution.
    To Eoin Compbell, we could try to prevent this problem by adding a default options record (similarly to what is done in multichoice) I will do a pull request to your Github.
  • Picture of Wade Noneya
    Thu, Apr 18, 2019, 12:39 AM
    I suspected that might be the case. So now, with the plugin installed, if i were to reimport it would be fine? I can't redo what I've edited on the existing course, but there are only three questions in this bank that use this format, and if I could see the settings/content in another course that worked I suspect I could just recreate those questions in this case (thereby recreating that data?)?
  • Picture of Wade Noneya
    Thu, Apr 18, 2019, 12:54 AM
    What about exporting the questions, will that work and if so, what format would I use considering this plugin is in play/ ?
  • Picture of Wade Noneya
    Thu, Apr 18, 2019, 1:23 AM
    Never mind. Silly question, just recreated since there were so few. Thanks so much for your prompt input and help. Much appreciated.
  • Picture of Marcello Pigini
    Sat, Sep 28, 2019, 5:08 PM
    Is it possible in the future to have a negative grade if the chooses is incorrect? Or is there a plugin that allows you to assign negative grade for multiple answers?

  • Picture of Eoin Campbell
    Sun, Sep 29, 2019, 10:08 PM
    I believe the standard Moodle Multiple Choice question allows for negative grading of multiple answers.
Please login to post comments