How to Number Quiz Questions Randomly Generated from a Quiz Bank
Mar 23, 2017
Yesterday, I met Tom K. and other super nice members of Articulate at the Learning Solutions Conf in Orlando. The page number features is still not in place for SL2. As many others have done, here's yet another workaround for adding page numbers to a Quiz that is randomly generated.
This is in SL2 and it's simpler than it appears when written out : )
In a nutshell, we are creating a variable to increment once the Submit button is clicked. This eliminates having to add and then subtract when a learner reviews the course. It also allows for one to retake the exam and starts the numbering all over again. This variable is then assigned to the page number placeholder variables, but only if they meet two conditions.
If you try this and anything breaks or I missed documenting a step, let me know. Will respond when time permits. Good luck!
16 Replies
Hey Ediana! So glad you got to say hi to our team at Learning Solutions! We always love meeting people like you from the community. I hope you're enjoying the conference and the sunny Florida weather. :)
Major kudos to you for sharing this demo here! Numbering randomly-generated questions is a common request here in the forums, so I'll definitely bookmark this and refer folks to it in the future. Thanks a bunch!
Hi Alyssa,
Thanks for the link to here, but this example still has the same issue I was asking about. When you run the quiz, you end up having to answer 11 questions, even though the count is sent to 10. However, when I replayed it has 10/10. There is inconsistent behaviour.
I have a course that is made up of questions, I don't have the option to retake (which takes out a variable). When I've tested it will sometimes make me answer 101 out of 100 or will work correctly and give me 100 questions.
Happy to help ;)
This post was removed by the author
Hi Christine,
The solution I posted is for those who are including the option to Review and Retake the quiz. From what I read you are not using the retake button. If you are able to share a sample story file, I can take a look and perhaps recommend something for your quiz.
Hi, Ediana. Thanks for posting your file. This is a common feature request from some SME's and I think your approach may serve me well.
HI Ediana,
The issue appears to be on the intial taking of the course. I was unable to duplicate the 11/10 or my 101/100 after the first try. I've attached a sample source file of what I've done.
Hi Christine,
Got the file - great. What was your initial issue when you wrote above, "the same issue I was asking about." ?
What is the objective?
Alyssa had directed me to your article. The issue that I was having, was on the intial 'taking' of the course I'd get 1 more than the actual specified amount. When I ran yours the first time I had to answer 11 questions, not just 10. When I ran mine, I had 101, rather than the 100 I specified.
Hi Christine,
The variable that serves as the counter (in your case the “pageCount” variable) should not be displayed at all. You had it on the slide master for all layouts. I removed it and just added a trigger on the quiz slide master layout to have it increment when the user clicks the submit button and only if the quiz_QX variables (which I created for each question) equal zero.
Keep in mind that the counter starts at 1. If you do display it, it will go to N + 1, N being your total number of quiz questions set to display (e.g.. 5), but that does not mean you are getting N + 1 questions.
I made the modifications to your sample and it seems to work – see v2. The solution is the same minus the Retake variables and button. It still requires a variable for each question and that variable will be assigned the counter variable so long the condition exist (as long as, it does not have a page number assigned already) and once the learner gets to the results page to Review, the counter sets back to 1 (see Trigger on the Results page). It does not increment during the Review because it's set to increment only when the Submit button is clicked. And the “quiz_QX” variables are not overridden during the Review because they already have a page number. Disclaimer - this works, so long the user Exits the course after the Quiz OR so long they don’t jump out of the quiz via the TOC once they get started. A simple note as you have at the beginning works well. Hope this helps.
Thanks so much for your help here, Ediana!
Great Post, came in very handy on latest build and will be using on future ones. Trigger on each slide instead of the base layer for the submit button meant i could use my own submit button instead of the articulate player one :)
Glad that this post was able to help you out as well Jonny. Thanks for chiming in to share and welcome to E-Learning Heroes :)
This post was removed by the author
Hi Lindsey.
There is an easier way to do quiz page numbering that will resolve your submit button issue, using the built-in slide number variables.
Create a new scene that only contains the draw from your quiz bank and use the built-in variable, Scene.SlideNumber. It will automatically number your randomly selected questions in order. You can also add the total number of questions. For example, your variable reference on each slide would be: Question %SceneSlideNumber% of 10
I have an example if you would like to see it.
Maureen
I would love to see your example! Thank you, Maureen!
Hi Lindsey,
I attached an example. Send me an email if you would like more information or need help with anything.
Maureen
maureen.matsumoto@aa.com
This post was removed by the author
Happy to lend a hand, Graham — let me know if you're able to download the files I attached here 📎