Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Quiz: Assessment with multiple choice questions

  • gallag
  • gallag's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago #229246 by gallag
LimeSurvey version: Version 3.22.17+200525
Survey theme/template: vanilla
==================
Hi everyone,

I searched through the posts but I cannot seem to find the answer to my problem.
I'm using Limesurvey as a tool to create a quiz with multiple choice/multiple selection possible questions.

At the end of the quiz I would like a sentence to pop up like "You answered ... out of 15 questions correctly!"
Just I can't seem to figure out how to make it count the correctly answered questions. When I turn on "Assessment mode" nothing happens in my multiple choice questions, meaning no extra button appears.

My questions are called Q1-Q15 and each question has 3 answers of which sometimes 1, 2 or all are correct.

Thank you for your help!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 4 months ago #229247 by Joffm
Hi,
assessment mode is not useful in questions of type "multiple".
As you might have seen, the assessment value of all subquestions is the same.

So, you will have to count the correctly answered question with an equation.
Let's say:
Q1 correct answer : subquestion 1 selected, subquestion 2 and subquestion 3 not selected
Q2 correct answer : subquestion 1 and subquestion 2 and subquestion 3 selected
Q3 correct answer : subquestion 2 and subquestion 3 selected, subquestion 1 not selected
...

One solution is:
{sum(if(Q1_SQ001=="Y" AND Q1_SQ002!="Y" AND Q1_SQ003!="Y",1,0),if(Q2_SQ001=="Y" AND Q2_SQ002=="Y" AND Q2_SQ003=="Y",1,0),if(Q3_SQ001!="Y" AND Q3_SQ002=="Y" AND Q1_SQ003=="Y",1,0),...)}
You simply add "1", if the IF-statement is TRUE, and "0", if the IF-statement is FALSE.

In a real survey I would split this into several equations, like
eqQ1: {if(Q1_SQ001=="Y" AND Q1_SQ002!="Y" AND Q1_SQ003!="Y",1,0)}
eqQ2: {if(Q2_SQ001=="Y" AND Q2_SQ002=="Y" AND Q2_SQ003=="Y",1,0)}
and sum at the end
eqTotal: {sum(eqQ1,eqQ2,...)}

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 year 10 months ago #239001 by stevie2022
Replied by stevie2022 on topic Quiz: Assessment with multiple choice questions
Hi!
I'm trying to implement your solution in my simple 5 Question survey.
The individual Questions-Validation is correct, but when I try to sum up all questions in the last question, the result is always zero.
What am I doing wrong here?
Thanks!
Best regards!
Stefan Pirker

Please Log in to join the conversation.

More
1 year 10 months ago #239002 by stevie2022
Replied by stevie2022 on topic Quiz: Assessment with multiple choice questions
Please find attached my lss file!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 10 months ago #239007 by Joffm

What am I doing wrong here?

You did not follow the instructions

So, you will have to count the correctly answered question with an equation.


If you use questions of type "short text" instead of "equation" you can't expect a result.

And if you only are interested in the total score you can write it in only one equation
{sum(if(G01Q01_SQ001!="Y" AND G01Q01_SQ002=="Y" AND G01Q01_SQ003=="Y"AND G01Q01_SQ004!= "Y",1,0), if(G01Q02_SQ001!="Y" AND G01Q02_SQ002=="Y" AND G01Q02_SQ003!="Y"AND G01Q02_SQ004== "Y",1,0), if(G01Q03_SQ001=="Y" AND G01Q02_SQ002!="Y" AND G01Q03_SQ003!="Y"AND G01Q01_SQ004!= "Y",1,0),...)}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 year 10 months ago #239056 by stevie2022
Replied by stevie2022 on topic Quiz: Assessment with multiple choice questions
Thanks! That was the point I was missing. After changing the question type to equation, it worked perfectly!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose