Skip to main content
Participating Frequently
May 7, 2018
Question

quiz answers are a range of numbers

  • May 7, 2018
  • 2 replies
  • 238 views

I'm developing a quiz for retail pricing practice.

For example: 

Participants are shown a picture of an item e.g. lawnmower

They have to decide what the price of the lawnmower should be.

There isn't anywhere to say a certain answer is worth so many points.  It only allows me to enter correct answers... but not the points they are awarded depending on their answer.

I would like points to be awarded as follows:

$250 = 3 points

$225 - 249 = 2 points

$200 - 224 = 1 point

I have it set up as a short answer question, but now I'm stuck.

Do I have to list each individual price separately?

$250 - 3 points

249 = 2 points

248 = 2 points

247 = 2 points

246 = 2 points

etc. etc. 

and if so, how do I set the points to be awarded?

I hope you can help!

Thanks

Abs

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Lilybiri
Legend
May 8, 2018

The first question is: do you need to report the score to a LMS? Reason for that question is that the Quizzing system variables like cpQuizInfoPointsscored are read-only.  If you need the quiz score to be correct the only way to override that status of 'read-only' is by using JS (but not how it is explained above).

If you don't need to include the score in a quiz total score and report that score to a LMS, you could still watch the result of an interactive object if the LMS can report the value of user variables. The idea would then be to store the score in such a user variable.

I would be pretty easy to create an advanced action for this purpose. If you need to solve a similar situation often I would indeed recommend a shared action. Waiting for your answer on my questions. Please, also mention the version of Captivate you are using?

Stagprime2687219
Legend
May 8, 2018

Hmm.. well, I can think of a way to do this but it would involve some help from JavaScript. If you want this to be a SCORM reported quiz to your LMS - it may not be the best way to go. I honestly have not explored quiz score reporting with JavaScript outside of a standard quiz slide.

On the other hand, if it is just an exercise for students to explore and see how they do, it would do well.

The short story is to have a text entry box which would be tied to a variable.

The submit button then checks the value of the variable that was submitted.

Points are then assigned to another variable as appropriate and displayed for the student.

I might put something like this on the submit button - where guess1 is the variable for the text entry box and points is the variable for the running score.

if (window.guess1==250) {

points=(points + 3);

}

if ((window.guess1<250) && (window.guess1>=225)) {

points=(points + 2);

}

if ((window.guess1<225) && (window.guess1>=200)) {

points=(points + 1);

}

if ((window.guess1<200) || (window.guess1>250)) {

points=(points + 0);

}

The above script could be crafted with advanced actions as well but would be a bit more "click-tedious".

Lieve might be able to recommend some shared actions as well.

Again, I have not tried something like this on a standard quiz slide so I am not sure how it would play out.

Perhaps someone else could verify that part.