How to make a multiple choice or short answer question that requires more than one correct response

How to make a multiple choice or short answer question that requires more than one correct response

Adri Marais -
回帖数:5

Hi


I need to set up multiple choice and short answer questions that require more than one response for more than one mark.

For example.

1. In a short answer questions, I want to ask for two names: "Name the two main characters in the novel for two marks."

And in grading I need to be able to assign 1 mark to each response, thus allowing students to score 1 or 2 out of 2. Right now I can also seem to ask for one response. I can list multiple correct responses in setup but students can only enter one response to be marked. 


2. In the multiple choice questions, I want to ask students to choose more than one option, each for a mark. For instance: "Choose 3 of the words below to describe the tone of the novel".

Thus students must be able to score 1, 2 or 3 out of 3 depending on their answers. I have been able to select "multiple answers" here but find that students then only get 1 mark if they get all the answers correct. So its a 1 or 0, all or nothing grade. 

回复Adri Marais

Re: How to make a multiple choice or short answer question that requires more than one correct response

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

Hi Adri,

Please remember the usual forum rule: one question per post only!

Answer to your question #1

In the Lesson settings -> Grade -> Show more -> Custom scoring: Yes

Question #1

Page contents: Name one main character for 1 mark or two main characters in the novel for 2 marks.
       Use regular expressions

Answer 1 Brian -> Jump Next page -> Score 1
Answer 2 Mary -> Jump Next page -> Score 1
Answer 3 Brian (and|&) Mary|Mary (and|&) Brian -> Jump Next page ->Score 2

The regular expression in Answer 3 will accept as correct answers:

  • Brian and Mary
  • Brian & Mary
  • Mary and Brian
  • Mary & Brian

Answer to your question #2

Unfortunately the scoring system of the MULTICHOICE question in the Lesson activity is buggy and does not work as one would expect. This bug has been reported quite a few times and will probably never be fixed. 伤心

回复Joseph Rézeau

Re: How to make a multiple choice or short answer question that requires more than one correct response

Adri Marais -

Joseph


Thank you for your reply. And apologies for breaking the one question rule. In my head it was two scenarios of the same scoring issue.


I have tried your advice on the short question answers. However, I get mixed results with some combinations of the names scoring 2 and other combinations only scoring one. I am wondering if it is the location of spaces in the formula or even that I am trying too many variables?

I attach screenshots of my entries. As you will see, one of the two characters also has a nickname so I needed to allow for that as well. 

So answer 1 was

Ruan  > score 1

Answer 2

Cissie| Cecelia  > score 1

In a testrun, all 3 of these answers score 1 mark successfully.

However the longer "formulas" are giving me trouble. I entered as follows:

Answer 3 

Ruan (and|&) Cecelia| Cecelia (and|&) Ruan

In a testrun, the 2nd combination of names scores 2 succesfully, while the first combination scores only 1, strangely enough.

Answer 4

Ruan (and|&) Cissie| Cissie (and|&) Ruan

Conversely, in a testrun,  the first combination of names scores 2 successfully while the 2nd combination, only scores 1. 

This makes no sense to me. I have tried with no spaces and spaces between entries. I have tried one long formula:

Ruan (and|&) Cecelia| Cecelia (and|&) Ruan| Ruan (and|&) Cissie| Cissie (and|&) Ruan

and interestingly, the same two answers score 2 marks and the same two scores only 1 mark, just as when I break them up into the two shorter formulas  as shown above. I find no logic in this.

What am I doing wrong?



附件 Answer 3.png
附件 Answer 4.png
回复Adri Marais

Re: How to make a multiple choice or short answer question that requires more than one correct response

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

@Adri,

Of course spaces are important in regular expressions!

Your expression Ruan (and|&) Cecelia| Cecelia (and|&) Ruan| Ruan (and|&) Cissie| Cissie (and|&) Ruan

should be re-written as

Ruan (and|&) Cecelia|Cecelia (and|&) Ruan|Ruan (and|&) Cissie|Cissie (and|&) Ruan

i.e. No spaces before or after the pipe character |

It could be shortened to:

Ruan (and|&) (Cissie|Cecelia)|(Cissie|Cecelia) (and|&) Ruan

If you want to adopt the Regular expressions in your Lesson short answers I suggest you read the documentation I wrote at Short_answer_analysis

回复Joseph Rézeau

Re: How to make a multiple choice or short answer question that requires more than one correct response

Adri Marais -
Thanks Joseph

I actually inserted the spaces in one of my many attempts to make it work as a beginner.

NOW I copied and pasted your formula and it was still only giving full marks to two of the four possible combinations of names. (The same two as previously)

However, after I deleted the expression in Answer 2 > Cecelia|Cissie, and just made the two names two seperate answers, it worked.
Possibly the two expressions were "clashing" if such a thing is possible.

Thanks for your help. I will definitely be reading your documents on regular expressions.
回复Adri Marais

Re: How to make a multiple choice or short answer question that requires more than one correct response

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

Congratulations for persevering!

The following should work as expected:

Answer 1

Ruan (and|&) (Cissie|Cecelia)|(Cissie|Cecelia) (and|&) Ruan

Score: 2

Answer 2

Ruan|Cissie|Cecelia

Score: 1

The order of Answers is important!