Let me explain with example, steps required for the same.
In a Captivate project, Add following user variables:
cp_min, cp_sec, cp_time_out, time_left:
Create /add questions slides of your choice. I have added simple 5 slides in this Captivate project to explain this procedure.
As shown below, Insert similar Slide, just before 1st Quiz Slide.
Explanation of the above Script: To explain it better, let me divide script in different parts :
Line 7 to 23: it is the function which would be called every second by line number 24.
Inside the function: Line number 8 to 13: simple manipulation of seconds , minutes.
Line 15 to 18: checking if the time is Over. And if thime is over Resullt slide is called.
Note: The candidate who is giving that exam is not necessarily Failed, but marks would be counted for whatsoever correct answers he/she has given in the time-limit, and Result is displayed accordingly.
To inform Student, about this(sudden end of Exam due to time-out), Time-Out message need to be displayed.
In the Result Slide, following Advanced Actions is added to display “Timed-Out” Box, if time was over.
I hope this will be useful to many who want to add simple time-limit in the Quiz(online exam).
Note: Although everything is shown and working example in also hosted, I have purposely kept one ‘cache’ without explanation. And those who will do it, will come to know about that cache. Try solving that at least for some time… otherwise I will explain that Defiantly. But I strongly believe that first you must try practically.
Request to Expert: Defiantly, You may be knowing the ‘Cache’ and its solution, but please don’t explain and give solution in the immediate post. Let other do by them selves.