Welcome to the LimeSurvey Community Forum

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

Assessment and Multpile Choice Questions

  • trunks
  • trunks's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 4 days ago #269778 by trunks
Hi there!
I am new to limesurvey and have spent many hours to get it working on my server (community edition).

I think my question has been asked many times before but I could not find an answer so far:

I simply want to make a quiz which includes not only single but also multiple choice questions. But I only see the assessment field when i choose single choice questions.
How can i add assessments too multiple choice questions?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 4 days ago #269779 by holch
Replied by holch on topic Assessment and Multpile Choice Questions
First of all, no need to post more than once. As a new user your post needs to go through a moderation process and only shows up when approved by a moderator.

Now to your question: Multipunch questions have a fixed assessment value of "1" for each box that is marked. That is why you don't see the assessment value field. That might be inconvenient, but remember, the assessment function is really old and basically depricated. Since there is expression manager, we mostly create our own more flexible assessment via that function. Gives you a lot more flexibility and also allows you to save the values to the database, while the assessment function did not save the values.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: trunks

Please Log in to join the conversation.

  • trunks
  • trunks's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 4 days ago - 1 week 4 days ago #269780 by trunks
Replied by trunks on topic Assessment and Multpile Choice Questions
Thanks a lot!
Sorry for the double post – I did not understand the procedure…

Is there a source where i can find a tutorial for the expression manager for my usecase?
Or can someone give my a hint how I could implement expression manager into my case?
Simply:
Assign points to the correct answers in the survey which consists of multiple choice questions.


Here is the file: 

File Attachment:

File Name: limesurvey...8749.lss
File Size:43 KB

LS:  LimeSurvey Community Edition Version 6.12.0+250317
Last edit: 1 week 4 days ago by trunks. Reason: Added lss file

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 4 days ago #269782 by Joffm
Replied by Joffm on topic Assessment and Multpile Choice Questions
Hi,
first advice:
Read the manual about ExpressionScript and download, import and study the suitable sample surveys.

second:
There are several ways to get the total "value" of a multiple question.
1. 
{sum(if(Q1_SQ001=="Y",x,0), if(Q1_SQ002=="Y",y,0), if(Q1_SQ003=="Y",z,0),...)}

2. Knowing that TRUE is represented by "1", FALSE by "0"
{sum(intval(Q1_SQ001=="Y")*x, intval(Q1_SQ002=="Y")*y,...)}

with x, y, z as your "assessment values".

This from my phone.
I'll have a look at your survey later.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: trunks

Please Log in to join the conversation.

  • trunks
  • trunks's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 4 days ago #269783 by trunks
Replied by trunks on topic Assessment and Multpile Choice Questions

second:
There are several ways to get the total "value" of a multiple question.
1. 
{sum(if(Q1_SQ001=="Y",x,0), if(Q1_SQ002=="Y",y,0), if(Q1_SQ003=="Y",z,0),...)}
 

Perfect! That sets me up ;) – I only have to know where I should insert this code?
Should I make a "equation" question at the and of the survey which includes this in the description?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 3 days ago #269787 by Joffm
Replied by Joffm on topic Assessment and Multpile Choice Questions

I only have to know where I should insert this code?

Wherever you want to display it.

You didn't say, why you calculate this "score" and where you'd like to display it. Or only store it in the database.

Remembering that your initial question was about assessments I suppose you want to show a result on the end page.
Or you display it at the end of the survey in a question of type "text display" (generally in each question / subquestion / answer option text)
If you want to use this result for other following calculations - or want to store this result - you should use a question of type "equation".

ExpressionScript is very mighty and flexible. You can use it nearly everywhere.
Therefore you should explain your final workflow.

Joffm
 

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

Please Log in to join the conversation.

  • trunks
  • trunks's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 days 3 hours ago - 4 days 3 hours ago #269854 by trunks
Replied by trunks on topic Assessment and Multpile Choice Questions
HI there!
Thanks for your fine replies!
Yes the expression scripting is really cool!

My Usecase would be the following:
  1. After each question group, there should be a view, which shows the user, which questions where wrong and correct. Plus: What would the correct answer be und what was wrong (Feedback for his/her answers)
  2. After the quiz a summery page:
    1. Result of the quiz with points or percentage
    2. If possible: highscore list of all the Users which completed the quiz (with Name of the textfield on the first Quiz page otherwise: "Anonymous Quizzer")
Would that be possible?

Is there some kind of pool of the .lss files, where I can find some templates? If such s pool exists, I could also make a template of my quiz survey and upload it to the pool...maybe someone else would be looking for a similar usecase ;)
 
Last edit: 4 days 3 hours ago by trunks.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 days 2 hours ago #269855 by Joffm
Replied by Joffm on topic Assessment and Multpile Choice Questions
Hi,
this means there are more than one correct answer in a question?
You asked about "multiple response" questions.

Let's say in question Q1 subquestion 3 and subquestion 5 are correct.

Is it only answered correctly if both are selected?
Or is it sufficient if one is selected?
How do you want to score?
5 points if both are selected, 2 points if only one is selected?

And what happens if a wrong subquestion is selected?
Imo here you should use negative values.
Otherwise I always get full points by selecting all subquestions.

Therefore I wrote:
Send the lss export.

Joffm 

And NO: there is no pool.
You find a lot of sample surveys covering most of the questions here in the forum.

 

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

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 days 3 hours ago #269860 by tammo
Replied by tammo on topic Assessment and Multpile Choice Questions
I have here a working example that you can download. Only with singles choice questions, but maybe it helps:
Quiz or assessment? | Respondage
Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose