Calculating the Average of a Quiz Score

Jun 10, 2019

Hi All,

I need some help using the division function in variables

I have created a quiz that has 8 multiple choice questions--each question has 5 possible answers, and each answer is scored with a value of 1 to 5.

My result slide adds up the value of my multiple choice questions with the built in score variable Results.ScorePoints.  All good up to this point.

Here's what I can't figure out--I want to create an "average score" for the eight questions--I want to take the result.scorepoints and divide it by 8.  I can't figure out how to make it work.

Any thoughts on how to construct this variable?  I'm doing this because I am using the quiz function to create a personal skill assessment.  I want the result to be calculated as an average of the 8 different questions.

Thanks!

4 Replies

Oh, I think I figured  out a very inelegant solution.  I created an additional variable called "result average" that replicated the quiz score.  Then I divided the "result average" by 8--and triggered that by the timeline.   I think I had the triggers mis-ordered.

If you have a better solution, please share it.  Otherwise I have enjoyed talking to myself today!

Hi Jodi,

I think that your solution is the best way to go about it! Unfortunately there's no way to access and work with the default score variable.

This post was removed by the author

Hi Hannah! I haven't done anything like this, but I'm guessing from Jodi's explanation that the variable 'results average' is initially set to the number 0 and the trigger is set to adjust that variable to Results.ScorePoints. The trigger after that divides the 'results average' variable by whichever amount you desire. See images for reference.

If this doesn't work, it might help to see your story file so we can take a look.

Hi Hannah,

I asked this question so long ago I can't remember what I was doing. :)  If I can find the file that I created I'll attach it for you.