StartQuestionnaire
Summary
This script will begin the questionnaire. Any questions loaded with AddQuestion will be sorted and presented to the user with multiple choice answers as clickable buttons.
The questionnaire can be sorted in order or with the questions and/or answers shuffled randomly.
Parameters
ShuffleQuestions
Type: Boolean Default: False
If assigned a value of True, each of the questions will be shuffled into a random order before beginning the questionnaire.
ShuffleAnswers
Type: Boolean Default: False
If assigned a value of True, each of the answers to every question will be shuffled into a random order before it is asked to the user.
ShowScore
Type: Boolean Default: True
If assigned a value of True, the total score of all correct answers answered will be shown at the end of the questionnaire.
Examples
In order to use the Questionnaire, you must follow a strict order of:
- Clear the Questionnaire - See ClearQuestions
- Add Questions to the Questionnaire - See AddQuestion
- Start the Questionnaire - (This script command)
Each Question added to the Questionnaire will be remembered and asked the next time you start the Questionnaire. You must call ClearQuestions first before starting a new one.
<clearquestions/> <addquestion Question="How many fingers are on a single hand" Answers="3,5,6,2" CorrectAnswer="1" /> <addquestion Question="Solve the mathematical problem: 4+5 = ?" Answers="9,12,10,8" CorrectAnswer="0" /> <startquestionnaire/>
The above code will clear the questionnaire first, then add 2 questions to the questionnaire, then start it.
Alternatively, you can also launch the Questionnaire in such a way that it will shuffle the order of the questions and/or the answers. Simply replace the <startquestionnaire/> line with any of the following:
<startquestionnaire ShuffleQuestions="True" />
The above code will shuffle all of the questions into a random order, then begin the questionnaire.
<startquestionnaire ShuffleQuestions="True" ShuffleAnswers="true" />
The above code will shuffle all of the questions into a random order, then shuffle all of the answers to each question in to a random order, then begin the questionnaire.