TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
 
TQS 2.0

Back to Reference

QUESTION Element

Contains 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
SOUND
TQS 2.5 The file name of a sound to be played when presenting this question.
TYPE
TQS 2.5 Specifies the type of question; is used when the TYPE attribute of the parent QUESTIONS element is set to "MIXED". Can be one of the following values:
"MC" (default)
A multiple-choice question.
"TF"
A true-false question.
"BLANKS"
A type-in-answer question.
Placement

The QUESTION element must be a child of the QUESTIONS element within an individual location element.

Children

The following child elements are supported:

Remarks

The 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.

  • The data root folder can be set with the TQS element's DATAROOT attribute. To specify an absolute path, such as an Internet address, precede the path with NOROOT?.
  • TQS 2.6 To specify an embedded file, precede the path with EMBED?.
Examples

Multiple-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>


©2016 Bot Productions. All rights reserved.Last Updated: May 28, 2004