Exclude questions in a Quiz Bank when used multiple times - Demo and .story file
I was presented with a question recently on how to exclude a previously used question from a Quiz Bank when that Quiz Bank is used multiple times.
This example is one Quiz Bank used four (4) times once in different Scenes. The Quiz Bank has 20 questions and is set to randomly present 5 of the 20 at a time. In normal usage, a question presented in the first Scene may show up again in later Scenes.
Aside from the four system variables for each Results Slide and a few extras for display purposes, there are only as many variables needed as there are questions. In this example there are 20 questions, so only 20 T/F variables initially set to FALSE and respectively named are needed.
Each variable is only used 3 times on each of the Question Slides in the bank. Triggers are:
- set question variable to TRUE on Correct feedback layer when timeline starts
- set question variable to TRUE on the Incorrect feedback layer when the timeline starts.
- Jump to next slide when the timeline starts *IF* that question variable is equal to TRUE
The logic works like this:
The first time the Quiz Bank is launched, all question variables are FALSE. When the learner makes a choice whether Correct or Incorrect, that question variable is set to TRUE.
On the second and subsequent times the Quiz Bank is launched, the "Jump to next slide when timeline starts..." is evaluated. This trigger is looking to see if that question's variable is TRUE. If that question was presented in a previous instance of the Quiz Bank, the trigger simply jumps to the next slide. The Quiz Bank is automatically handling the randomness for you!
Note: there are several other variables in this example for question counting, totals, quiz names, and for resetting counts. Disregard those as they have nothing to do with the logic.
You'll also notice a legend of sorts to visually "see" the variables in action as they track question usage. The legend is resting on the Master Slide so if you repurpose this in a project, simply delete the text box.
The best part? It's totally scalable! If you add more questions, simply add more variables per question. Change how many are presented? Just adjust the Quiz Bank settings. The logic is simply tracking usage whether it's 5 of 20, 10 of 30, or 50 of 200!
I'm sure there are other ways to approach this, but this works and it's simple to edit and update.
STORY FILE attached