Why?
In Flanders there is a saying ‘Twee vliegen in één klap’ (killing two flies at once). Let me show a workaround for a Pretest (without the normal limitations) and update that old post, taking advantage of improvements since …. version 6. Have to refurbish a lot of posts, which are still attracting visitors, with HTML5 output. Here is one of them.
Example file
Setup
I will explain the variables used in this example, and the actions/events in the rest below.
Variables
System variables
cpQuizInfoPointsscored: the points scored so far by the learner, is updated after the Submit button is clicked.
cpInfoLastVisitedSlide: is used to check if the learner gets to a slide from the previous slide or from another slide (because getting a passing score has become impossible.
User variables
v_PassPerc: required pass percentage for the Pretest. As explained for the previous variable, I preferred a specific variable instead of the system variable cpQuizInfoPassPercent. The value has to be filled in on definition, in this case it was set to 80 %.
v_PassScore: will be calculated from the two previous variables (is same in the example as cpQuizInfoPassPoints.
v_MaxUntil: will be calculated. What is the maximum score the learner would have gotten until the present question (all answers correct).
v_MaxRemain: will be calculated. What is the maximum score the learner can obtain with the remaining questions? Logically the sum of v_MaxUntil and v_MaxRemain should be equal to v_MaxPretest.
v_Possible: will be calculated, what is the maximum score which the learner can obtain if he/she gives a correct answer to all questions still to be answered.
Advanced Actions – Events
EnterFirst
The variable v_Passcore is calculated from two other variables having a default value. In this case v_MaxPretest was 40 points (maximum score) and v_PassPerc = 80% required for passing the test. Result will be 32 points for v_Passscore.
The variable v_MaxUntil will get its first value, which is the score possible to obtain for this first quiz slide.
EnterPre
CheckPre
The trick used is to calculate v_Possible, which is the maximum score a learner can still get after the present question, supposing he/she will give a correct answer to all the remaining questions (value of v_MaxRemain). Learner already obtained a score stored in cpQuizInfoPointsscored. This calculation happens in the first decision ‘Maths’.
The second decision is conditional, and will navigate the learner out of the Pretest (Jump to Score slide) if he will not be able to pass the test. If it is still possible to acquire the passing score, the test continues.
EnterScore
This is the most complicated action, because it has to take care of three situations. Each situation results in a conditional decision:
- If the learner has finished all questions (last visited slide was slide 8, which is the last question slide), but did fail, (comparing score with v_PassScore). In that case the appropriate state of an multistate SVG and a multistate text container is shown. The Next button appears as well.
- If the learner has not finished all questions, (last visited slide was not slide 8) another state is made visible for both multistate objects, and the Next button appears.
- If the learner has a passing score for the test, another state is shown and not the Next button, but the ‘ToTest’ button appears, which will navigate the learner to the results slide (from which a separate quiz file can be launched).
Conclusion
Of course the same approach can be used for a normal quiz. It can spare the learner a lot of frustrations if he started the quiz, without mastering the content, and quickly sees that the result will never be sufficient. That was the original reason for the first older post.
It would be interesting to know if you ever use the default Pretest slides, because I really dislike the many limitations. All Pretest slides need to be at the start of the course and in sequence. All navigation will be disabled, on the playbar as well in the TOC, not only for the Pretest slides but also for content slides which is very annoying. What do you think?
Would it be possible to replace the Pretest slides by Knowledge Check slides? I suspect it would be possible, maybe stuff for another 'anti-frustration' post? The advantage would be that a final quiz will be easier to set up.