Always getting last response for any of wrong answers in multianswer Qs

Always getting last response for any of wrong answers in multianswer Qs

by Daniel Mikšík -
Number of replies: 8
Picture of Core developers Picture of Translators
Hi all,
if I choose any combination of wrong answers in a
multianswer question, I'm always getting the response linked to the last answer (tested in 1.4.3+, 1.4.5+, 1.5).

Example

Question: What is the capital of the Czech Republic?
Answer #1: Prague
Response #1: Yes!
Answer #2: Brno
Response #2: No.
Answer #3: Pilsen
Response #3: You got right the first letter but that's not enough really.

For any combination of answers containing at least one wrong answer (i.e. 1-2, 1-2-3, 1-3, 2, 2-3, 3) the response I receive is always #3: "You got right the first letter but that's not enough."

Is this a bug or just something I'm too tired to understand? thoughtful
Average of ratings: -
In reply to Daniel Mikšík

Re: Always getting last response for any of wrong answers in multianswer Qs

by Mark Nielsen -
If you have custom scoring on, can you tell me the scores for #1, #2, and #3.

If you have custom scoring off, can you tell me the jumps for #1, #2, and #3.

Thanks,
Mark
In reply to Mark Nielsen

Re: Always getting last response for any of wrong answers in multianswer Qs

by Daniel Mikšík -
Picture of Core developers Picture of Translators
Hello Mark,
thank you for your prompt reply. Here's what you asked for:

Scores for custom scoring on
#1 - 1
#2 - 0
#3 - 0

Jumps for custom scoring off
#1 - Next page
#2 - This page
#3 - This page
In reply to Daniel Mikšík

Re: Always getting last response for any of wrong answers in multianswer Qs

by Mark Nielsen -
I took a look at the code and the problem you are describing is just how the code works.  Technically, you will never see the response to #2 in this situation.

Post back if you want more info,
Mark
In reply to Mark Nielsen

Re: Always getting last response for any of wrong answers in multianswer Qs

by Daniel Mikšík -
Picture of Core developers Picture of Translators
Yes, I would like to get more info, if possible. Is there a good reason for the code to work like this? From my point of view, there is no purpose then for entering different reponses to different answers, which is a shame. mixed
In reply to Daniel Mikšík

Re: Always getting last response for any of wrong answers in multianswer Qs

by Ray Lawrence -
Is this the way it works for other question types too?
In reply to Ray Lawrence

Re: Always getting last response for any of wrong answers in multianswer Qs

by Mark Nielsen -
Nope.  And this is only for multi choice with multi-answer on.  The only other question that is similar to this situation is matching.  But the newer version of matching only allows for 1 correct response and 1 incorrect response to be entered.

Cheers,
Mark
In reply to Daniel Mikšík

Re: Always getting last response for any of wrong answers in multianswer Qs

by Michael Penney -
How should it work?
In reply to Daniel Mikšík

Re: Always getting last response for any of wrong answers in multianswer Qs

by Mark Nielsen -
Well, if you wanted a response for every possible answer combination, things might get a little crazy.  For multiple choice with multi-answer on, you would have 2^X possible answers (where X is your number of choices).  So, if we have 8 choices we would have 256 different answers to write responses to.  Thus, the code does not decipher how the student answered the question, but rather if the answer is right or wrong (just need 2 responses for that).

I would recommend for multiple choice with multi-answer on that you just type one response for a correct answer and an incorrect answer.

The reason why every answer has a response field is for multi choice questions with multi-answer off.  In which case every response could be seen.

Hope this helps,
Mark