Help! Does Moodle support multiple answers in short answer question?

Help! Does Moodle support multiple answers in short answer question?

by Christina Keing -
Number of replies: 9

Dear All, I have designed a question which have 5 possible answers and user would get marks by answering any 2 out of the 5 possible answers. 

I find that Moodle doesn't support this kind of question, is this ture?  Is there any work-around?

If I use embeded "Embedded Answers (Cloze)" and assign 2 answer boxes to the question, it won't check if there is duplicated input and I will gain full mark by keying in 1 correct answer in both answer boxes.

Average of ratings: -
In reply to Christina Keing

Re: Help! Does Moodle support multiple answers in short answer question?

by Dan Stowell -
Christina -

Firstly, please don't post the same question in multiple forums. It's impolite.

Moodle does support the type of question you're looking for, in the "short answer" question type. For example, I add a question "What is the capital of England?" with possible answers "London", "Londres", "Paris", and "Tokyo". For the first two possible answers I set the grade to "100%" (because I have French-speaking students who I don't want to penalise). For the second two answers I set the grade to "None" and add some suitable feedback to correct the misconception.

In reply to Dan Stowell

Re: Help! Does Moodle support multiple answers in short answer question?

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Dan,

I quite agree with your little netiquette reminder to Christina. However, I would say that multiple posting is more "counterproductive" than "impolite".wink

As regards Christina's query for accepting multiple correct answers in an embedded, cloze-type question, I would recommend using MULTICHOICE rather than SHORTANSWER. Example code follows and see screen shot attached.

The capital of England is {1:MULTICHOICE:Paris#No~=London#OK~=Londres#OK~Tokyo#No} .

All the best,

Joseph

Attachment Image1.jpg
In reply to Dan Stowell

Re: Help! Does Moodle support multiple answers in short answer question?

by Christina Keing -

Thanks and I will be careful not to post the question repeatedly.

In fact, I want 2 answer boxes instead of one.  For example, the question can be like Please state any 2 cities in England. There should be two answer boxes and the submitted answers should be checked against a list of possible answers.

However, it seems to me that I cant do this by short answer but by embedded answers (cloze) with 2 short answer questions.  

But then it creates another problem.  What if my student key in London two times in the 2 answer boxes repeatedly?  My student would get full mark even the student actually only give one correct answer.  Moodle seems not  be  able to cross check this cause it treats the 2 answer boxes in the embedded answers question as 2 independent questions.

However, I think this kind of question is very common and I just wonder if Moodle could support it. Do you have any advices? Thank you very much.
In reply to Christina Keing

Re: Help! Does Moodle support multiple answers in short answer question?

by Jeff Forssell -
I'm wondering if Joseph Rs Regular Expression question might be the answer for a question like that. It's a very powerful kind of question.
But it would take some thinking (probably by Josephcool) to figure out the logic. In any case it would be using one input field for both answers. Check for double entries before checking right answers. I'm not SURE shy that it can do it, but I think it might.
In reply to Jeff Forssell

Re: Help! Does Moodle support multiple answers in short answer question?

by Paul Lohr -
I have tried using multiple short answer text boxes in the cloze format. The first short answer appears as it should, any following short answer code appears as code rather than a text box. As a test, I tried a short answer text box followed by a multiple choice combo box. Both appear as they should. Is this an error on my part or is this a problem with Moodle? I am attempting to paste the code below:

Name the five major properties of a network adapter.

1. {1:SHORTANSWER:Wrong answer#Incorrect.~=access method*#Correct.~=transmission speed#~=connector interface*#Correct.~=system interface#Correct.~=manufacturer*#Correct.}
2. {1:SHORTANSWER:Wrong answer#Incorrect.~=access method*#Correct.~=transmission speed#~=connector interface*#Correct.~=system interface#Correct.~=manufacturer*#Correct.}
3. {1:SHORTANSWER:Wrong answer#Incorrect.~=access method*#Correct.~=transmission speed#~=connector interface*#Correct.~=system interface#Correct.~=manufacturer*#Correct.}
4. {1:SHORTANSWER:Wrong answer#Incorrect.~=access method*#Correct.~=transmission speed#~=connector interface*#Correct.~=system interface#Correct.~=manufacturer*#Correct.}
5. {1:SHORTANSWER:Wrong answer#Incorrect.~=access method*#Correct.~=transmission speed#~=connector interface*#Correct.~=system interface#Correct.~=manufacturer*#Correct.}

In reply to Paul Lohr

Re: Help! Does Moodle support multiple answers in short answer question?

by Gary Newport -

I have the same issue. I wanted to have a missing word paragraph and so tried:

Hard disks are a {=magnetic ~computer ~platters ~casing ~data ~gigabytes ~operating ~application} storage device. They are usually built into the {~magnetic =computer ~platters ~casing ~data ~gigabytes ~operating ~application} itself.
The hard disk has a set of {~magnetic ~computer =platters ~casing ~data ~gigabytes ~operating ~application} spinning at high speed inside its metal {~magnetic ~computer ~platters =casing ~data ~gigabytes ~operating ~application}.
Hard disks hold a lot of {~magnetic ~computer ~platters ~casing =data ~gigabytes ~operating ~application}, typically many {~magnetic ~computer ~platters ~casing ~data =gigabytes ~operating ~application}.
They normally store the computer's {~magnetic ~computer ~platters ~casing ~data ~gigabytes =operating ~application} system, the {~magnetic ~computer ~platters ~casing ~data ~gigabytes ~operating =application} and the user's data.

But this only let's the first part work and then nothing. Any ideas?

In reply to Gary Newport

Re: Help! Does Moodle support multiple answers in short answer question?

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Gary,

Did you check the Cloze/Embedded question type syntax when you created your question? You've got it all wrong. mixed This is how it should be written (just the beginning):

Hard disks are a {1:SHORTANSWER:=magnetic~computer~platters~casing~data~gigabytes~operating~application} storage device.
They are usually built into the {1:SHORTANSWER:magnetic~=computer~platters~casing~data~gigabytes~operating~application} itself.

see result on screen shot #1

However, for what you want to achieve I would suggest a matching question. See enclosed screen shot #2

Hope that helps,

Joseph

PS Unfortunately the Cloze/Embedded question type is still rather difficult to code in Moodle and it is unstable and will sometimes yield unpredictible errors even when coded properly. sad

Attachment image-0000.jpg
In reply to Paul Lohr

Re: Help! Does Moodle support multiple answers in short answer question?

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Paul,

I'm afraid you are using the wrong type of question for what you want to achieve. And why are all your 5 sub-questions all exactly the same anyway? What does the * wildcard at the end of each answer stand for?

Actually there is no standard question type which will enable you to test the ability of your students  to answer such a wide open question as the one you are asking of them... except using my regular expression type.

Joseph

In reply to Joseph Rézeau

Re: Help! Does Moodle support multiple answers in short answer question?

by Paul Lohr -

Thank you for your help, Joe. I now have the multiple short answer questions working somewhat correctly. The problem was with my having copied and pasted the last four short answer text boxes. One issue still remains: even if the student fills in all correct responses, the entire question is still marked incorrect. The feedback for each item reads "correct". Perhaps this is not possible since Moodle was not intended to handle this type of question.

Thank you for the link to the documentation on the cloze format.

The goal of the question is to get the student to respond, in any order, with the properties of a network adapter. The quiz is only a practice quiz aimed at improving the memory of such concepts. The asterisk behind some of the responses was to catch non-singular format answers (i.e.-connector interfaces as opposed to connector interface). I am just now realizing that the regular expressions available in Moodle are similar to those used in Javascript. Adding the ".*" to catch wrong answers was helpful.