Your Moodle version

Question types: All-or-Nothing Multiple Choice

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%.

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 (


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


This plugin is part of set Seeking new maintainer.


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
  • Picture of German Valero
    Sat, Apr 19, 2014, 10:38 AM
    I hope you don't mind that I started a Documentation page for this add-on at .

    I also added this plugin to the list at

  • 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
    Is there a 2.4 version available?
  • 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+)


  • 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.
  • Picture of Anant Sahni
    Thu, Nov 5, 2015, 8:16 PM
    Hello Jean-Michel,

    Just wanted to confirm - if this plugin is compatible with Moodle 2.9? The version tab seems to have conflicting details.

    Anant Sahni
  • Picture of Mark McKay
    Tue, Dec 8, 2015, 2:29 AM
    Hello Jean-Michel,

    Are you still maintaining this code?

  • Picture of Jean-Michel Védrine
    Sat, Jan 23, 2016, 5:06 PM
    Yes I am still maintaining this plugin (which is in fact easy as most of the code is in fact in qtype_multichoice, this is why an unique version works with so many Moodle versions wink )
  • Picture of Mike Churchward
    Fri, Feb 12, 2016, 3:01 AM
    Hi Jean-Michel -

    This plugin is in the "seeking maintainer" list ( Is that a mistake?
  • Picture of Erica Bithell
    Mon, May 23, 2016, 4:27 PM
    Hi Jean-Michel,

    Do you have any update on the "seeking maintainer" status? Your plugin is still on the list, but your post on Jan 23rd suggests otherwise - are you still maintaining it for the moment, but looking for someone to take it on if possible? Or is the listing a mistake?


  • Picture of Chintan Zaveri
    Sun, May 29, 2016, 10:30 PM
    Hey.I am interested in contributing towards this plugin. Let me know if you are not maintaining it.
  • Picture of Emilie Lenel
    Mon, Jul 11, 2016, 11:18 PM
    Hi Jean-Michel,
    I don't see your answer on Chintan Zaveri proposal. This plugin is very usefull for us, we hope a new maintener will be appointed very soon..
1 2
Please login to post comments