Skip to main content
Metrix Contractor
Known Participant
November 12, 2015
Answered

Custom Quiz Results Page mapped to quiz question interaction IDs

  • November 12, 2015
  • 2 replies
  • 1487 views

We are using Captivate 9 and we want to create a custom quiz results page with five categories (each quiz question is tagged with 1 of 5 interaction IDs) Each question in the module will have points assigned to one of the five categories. Each question will be worth 10 points. Each question uses a built in multiple choice or hot spot quiz question slide. We want the results screen to tally and display the learner's score in each category. So for example if there are three questions in category 1 and I get two right, we want the results screen to show this: Category 1: 20/30.

In summary, we want to create five numeric variables. Each question will be assigned to one variable. Each correct answer should add 10 to the numeric variable. The results screen should display a tally of the five numeric variables.

How do we do this? Please help:)

This topic has been closed for replies.
Correct answer Lilybiri

In that case you'll need the second approach. Create 5 user variables v_cat1, v_cat2.....v_cat5 with a default value of 0. Create a shared action that you can attach to the Success and Failure events of the question slides. It will be something like this (didn't try it out, bit busy at this moment):

  • Expression v_cat1 = v_cat1 + cpQuizInfoLastSlidePointScored
  • Go to Next Slide

Only the variable v_cat1 has to be a parameter. When you apply this action to the two events of a question, you'll only have to indicate the correct variable.

On your score slide, insert that user variable in a text container.

Do you want to have the maximum score also calculated? Then you'll need 5 extra user variables v_max1, v_max2....v_max5. Add one more command to your shared action:

  • Expression v_max1 = v_max1 + cpQuizInfoPointsPerQuestionSlide

That means now two parameters (the two user variables).

Good luck!

2 replies

Metrix Contractor
Known Participant
December 3, 2015

Hi 

Everything with the scoring seems to be working, except the percentage (Accuracy) does not match the "Number of correct questions"/"Total number of questions". I activated all the results features to check...and it looks like accuracy is calculated off of "Your Score" and "Maximum Score". But this is different from "Correct/Total questions". Why? What is "your score" actually calculating?

What I'm getting is:

You scored: 130

Maximum score: 150

(this = 87% = Accuracy)

Correct questions: 15

Total questions: 19

(this = 78.9 % = what I actually want to appear on screen)

Thanks

Lilybiri
Legend
December 3, 2015

A percentage (Accuracy) is always calculated from the score and the maximum score, which gives indeed 87% (correct).

If you want another percentage, you'll have to calculate it yourself. It looks like you want to have the percentage of correct answers compared with the total number of answers. If all answers have the same score, Accuracy calculated with the score will be the same as the one you seem (weirdly) to want. This is a very strange question...problems with maths?

Metrix Contractor
Known Participant
December 3, 2015

Not a problem with math, we are new to Captivate and didn't know what the "Score" was calculating. It looks like there is a field in quiz setting called "Points" where you can enter that. Some of our questions automatically had 10 points while others had 0. It looks like this is why we got a score of 150, rather than 190. I added the required points and now the accuracy percentage matches the score and correct/incorrect.

Thanks.

Lilybiri
Legend
November 12, 2015

If the questions in a category were in sequence you could use the approach explained in my blog post: Intermediate Score Slides - Captivate blog

Even if they are not in sequence, the work flow will be similar: you have to add the value of the system variable cpQuizInfoLastSlidePointScored to the appropriate category user variable after each slide. Since you are on Captivate 9 I suggest to use shared actions instead of advanced actions, with the category user variable as a parameter.

Parameters in Shared Actions - Captivate 7 vs. 8 - Captivate blog

Metrix Contractor
Known Participant
November 12, 2015

Ah great! Thank you.

Just to clarify, by sequence do you mean quiz question after quiz question, or having the questions for each category one after the other (like in your sample...all the Geography questions are in sequence).

For our project, we have two eLearnings:

1. Quiz - all quiz questions

2. Scenarios - content slides interspersed with question slides

In both cases, the question categories are not in order (i.e we have a question on politics, then on geography, then politics again.) There wouldn't be a menu to choose which category you want to answer questions (jeopardy style).

I've attached a screenshot of what we want our results screen to look like - i think it provides more clarity.

Lilybiri
LilybiriCorrect answer
Legend
November 12, 2015

In that case you'll need the second approach. Create 5 user variables v_cat1, v_cat2.....v_cat5 with a default value of 0. Create a shared action that you can attach to the Success and Failure events of the question slides. It will be something like this (didn't try it out, bit busy at this moment):

  • Expression v_cat1 = v_cat1 + cpQuizInfoLastSlidePointScored
  • Go to Next Slide

Only the variable v_cat1 has to be a parameter. When you apply this action to the two events of a question, you'll only have to indicate the correct variable.

On your score slide, insert that user variable in a text container.

Do you want to have the maximum score also calculated? Then you'll need 5 extra user variables v_max1, v_max2....v_max5. Add one more command to your shared action:

  • Expression v_max1 = v_max1 + cpQuizInfoPointsPerQuestionSlide

That means now two parameters (the two user variables).

Good luck!