Limit number of answers in multiple choice question

Re: Limit number of answers in multiple choice question

by Jill Kearney -
Number of replies: 1
Hi,
We have tried the code and it works perfectly!! Thanks so much. To others who are reading this .. this code works in multiple choice questions. You paste it into the Question text box (after hitting the down arrow and <> so you can enter the code. Just change the number "2" to n-1 where n is the number of answers you want to be the limit for that question. So if you say "select 3 of the following list", they will not be able to select 4 or more .. they can only select 3. Then you can make feedback for the incorrect answers that will show when they hit "Check". This avoids someone selecting all the answers and getting the feedback "your answer is correct".
Thanks very much to Dominque for providing this. Much appreciated.
Jill
In reply to Jill Kearney

Re: Limit number of answers in multiple choice question

by Julian Prommer -

Hi

solution would meet our multiple choice regulations at the Technische Universität Darmstadt.

Some court decisions in germany made our legal staff to change the regulations of multiple choice grading before problems will come up.

So we the constraint, that the choices are counted. Either only the expected count of choices can be set or if a student sets to many choices it will be graded to 0. 

We have to show the expected count of choices. We have to give partial points.

There it would be nice, when this nice peace of code could toggled on and off in the MC question type. 

Some additional features could be:

  • autodection of the amount of choices which have to be selected
  • manual overide by typing in a smaller number of choices as the maximum set.
  • showing the expected amount of selected choices as part of the GUI (perhapps with toggle on/off)


This would be nice for moodle 3.11+ and 4