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

Back to Reference

QUESTIONS Element

Contains the data for a location of type "QUESTIONS", in which the user is presented with a series of trivia questions.

Syntax
<QUESTIONS
  INORDER="inorder"
  SCRAMBLEANS="scrambleans"
  SHOWSCORE="showscore"
  HOVER="hover"
  TYPE="type"
  CASESENSITIVE="casesensitive">
  ...
</QUESTIONS>
Attributes
INORDER
If set to "1", the questions will be presented to the user in the order that the QUESTION elements are listed in the file. Defaults to random order.
SCRAMBLEANS
Applies to multiple-choice questions. If set to "1", the answers will be listed in a random order. Defaults to the order that the ANSWER elements are listed in the file.
SHOWSCORE
If set to "1", TQS will display score statistics for the current location, such as number tried, correct, wrong, and percent correct. Defaults to being hidden.
HOVER
TQS 2.1 If set to "U", an answer will be underlined when the mouse hovers over it. Defaults to not underlining.
TYPE
TQS 2.5 Specifies the type of questions contained in this question set; does not apply to global settings. Can be one of the following values:
"MC" (default)
Multiple-choice questions.
"TF"
True-false questions.
"BLANKS"
Type-in-answer questions.
"MIXED"
Questions of various types; each QUESTION element's TYPE attribute specifies the type of each individual question.
CASESENSITIVE
TQS 2.5 Applies to type-in-answer questions. If set to "1", answers are case-sensitive, where capitalization counts. Defaults to not case sensitive.
Placement

The QUESTIONS element must be a child of a LOC element whose TYPE attribute is set to "QUESTIONS", or of the GLOBAL element when specifying settings for all QUESTIONS locations.

Children

The following child elements are supported:

Remarks

In TQS 2.0, the SHOWSCORE attribute is only used in global settings; INORDER and SCRAMBLEANS apply to both local and global settings. In version 2.1 and later, all QUESTIONS attributes are supported under both global settings and local settings.

Examples

<GLOBAL>
  <QUESTIONS
    SHOWSCORE="1"
    SCRAMBLEANS="1"
    HOVER="U">
    <CORRECT>Correct answer!</CORRECT>
    <INCORRECT>Wrong answer!</INCORRECT>
  </QUESTIONS>
</GLOBAL>
<LOC TYPE="QUESTIONS">
  <QUESTIONS
    INORDER="1"
    SHOWSCORE="0">
    <QUESTION>
       ...
    </QUESTION>
    <QUESTION>
       ...
    </QUESTION>
    ...
  </QUESTIONS>
</LOC>


©2016 Bot Productions. All rights reserved.Last Updated: June 14, 2001