Digital Workshop http://forum.digitalworkshop.co.uk/ |
|
Question Bank http://forum.digitalworkshop.co.uk/viewtopic.php?f=13&t=1716 |
Page 1 of 1 |
Author: | Brenden Knifton [ May 9th, 2006, 12:01 pm ] | ||
Post subject: | Question Bank | ||
Attached to this post is an example of a simple text based question bank. The Example is split into two parts: The first part, allow a user to create the question bank. The second allow the questions stored by the first program to be used as a test. How the First Program works: The first publication is a simple one-page publication. There are 5 text input objects, when data is entered into the objects it is saved into a set of variables When the “Next Question” button is pressed this data is added to a set of arrays: Once this is done the values of the text object variables are reset to Null. The variable qcount is increased by 1 and the page is reset ready for further data to be added. The variable qcount is used to increment the array values. When the user has added all the question they need they then hit the finish button. The Finish button has a script that writes the data to an encrypted file. The first stage is to write the number of questions entered to the file. This is then followed by the data from the arrays. How the Second Program works: The second program is similar to the first publication ,but is working in reverse. Page 1 has a script to read all the data back from the encrypted file. It first read, the first object from the file, this is the number of question in the question bank. A loop is then set to read the data back from the file into a set of arrays. Once all the data is read back a variable called loaded is set to 1. A variable change trigger picks this up and allow the publication to move forward to the questions. There are 4 questions pages which are called at random this is so the question answers are always random. This prevents cheating. When a page loads it displays the data from the array on screen for the student to read. If a student selects the correct answer the variable score has 1 added to it. The button action also check to see how many questions have been answered if all the question have been answered then the score page is displayed showing how many questions were answered and what the score correct was. Regard Brenden Knifton
|
Author: | Graham Baglin [ May 11th, 2006, 4:33 am ] |
Post subject: | |
Brenden This is excellent. Thanks very much for putting this together. Now all I gotta do is learn and understand how your publication works........... Might be a while Cheers Graham |
Author: | Brenden Knifton [ May 12th, 2006, 3:37 pm ] |
Post subject: | |
Graham Glad you like it, if you have any specific questions please feel free to ask. Regards Brenden Knifton |
Author: | opuslover [ September 11th, 2006, 2:59 pm ] |
Post subject: | problem in using your tutorial |
I tried your prog but when I enter the questions set page there is one place that should put the correct answer in . what should i put here .Is it A,B,C or number or the correct word and when i put a letter like B it appears as an alternative please help |
Author: | Mallette [ September 26th, 2006, 9:55 pm ] |
Post subject: | |
Brenden: Quite interested in the random bank, but do not see the attachment. Dave |
Author: | Mallette [ September 26th, 2006, 10:28 pm ] |
Post subject: | |
Never mind, Brenden. I am obviously quite blind. Dave |
Author: | zesmail [ November 16th, 2008, 4:15 pm ] |
Post subject: | Query |
Brenden How do I download the example, cant see any links. |
Author: | Paul [ November 16th, 2008, 8:13 pm ] |
Post subject: | |
Login to see the link -- it works ok. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |