QUESTION ElementContains the data for an individual question, either a multiple-choice, true-false, or type-in-answer question. Syntax<QUESTION SOUND="sound" TYPE="type"> ... </QUESTION> Attributes
PlacementThe QUESTION element must be a child of the QUESTIONS element within an individual location element. ChildrenThe following child elements are supported: RemarksThe actual data for the question itself is stored within its child elements. In order for any sounds to be played, the TQS element's USESSOUNDS element must be set to "1". The sound file must reside in the data root folder. This is, by default, the folder containing the .TQS file.
ExamplesMultiple-choice questions (default): <LOC TYPE="QUESTIONS"> <QUESTIONS> <QUESTION> <Q>What is the answer?</Q> <ANSWER>Not this.</ANSWER> <ANSWER>Not this either.</ANSWER> <ANSWER CORRECT="1">This.</ANSWER> </QUESTION> ... </QUESTIONS> </LOC> True-false questions: <LOC TYPE="QUESTIONS"> <QUESTIONS TYPE="TF"> <QUESTION> <Q>Detroit is the capitol of Michigan.</Q> <ANSWER>FALSE<ANSWER> </QUESTION> ... </QUESTIONS> </LOC> Type-in-answer questions: <LOC TYPE="QUESTIONS"> <QUESTIONS TYPE="BLANKS"> <QUESTION> <Q>What is the capitol of Michigan?</Q> <ANSWER>Lansing<ANSWER> </QUESTION> ... </QUESTIONS> </LOC> Mixed question types: <LOC TYPE="QUESTIONS"> <QUESTIONS TYPE="MIXED"> <QUESTION TYPE="MC"> <Q>What is the answer?</Q> <ANSWER>Not this.</ANSWER> <ANSWER>Not this either.</ANSWER> <ANSWER CORRECT="1">This.</ANSWER> </QUESTION> <QUESTION TYPE="TF"> <Q>Detroit is the capitol of Michigan.</Q> <ANSWER>FALSE<ANSWER> </QUESTION> <QUESTION TYPE="BLANKS"> <Q>What is the capitol of Michigan?</Q> <ANSWER>Lansing<ANSWER> </QUESTION> ... </QUESTIONS> </LOC> <QUESTION SOUND="moo.wav"> <Q>What animal makes this sound?</Q> <ANSWER CORRECT="1">Cow.</ANSWER> <ANSWER>Horse.</ANSWER> <ANSWER>Bird.</ANSWER> </QUESTION> |