True-False Questions

True-false questions are those that can be answered by one of two possible answers: "true" (or yes), or "false" (or no). For an example, select here.

The sections of a true-false question are shown below:

ANSWER

The form of the <ANSWER...> is as follows:
	<ANSWER ANS=l HELP=url>

The ANS=l attribute specifies that l is the the correct answer. l must be one of: "true", "false". Two "buttons" (with hypertext links) are automatically generated in place of the ANSWER element. The reader may select one of these to supply an answer.

The HELP="url" attribute is optional. If given, it specifies the URL of a help document, and a link to it is automatically included.

RESPONSES

The <RESPONSES> section is optional; it provides the responses that should be displayed after an answer has been given. The format of the <RESPONSES> section is shown here:
	<RESPONSES>
	<WHEN ANS=x> . . .
	. . .
	<WHEN CORRECT> . . .
	. . .
	<WHEN INCORRECT> . . .
	. . .
	</RESPONSES>
The <WHEN...> elements specify the conditions under which the following text is to be displayed as a response.

<WHEN ANS=x> specifies that the following text is to be displayed whenever the user provides x as an answer (x must be true or false).

<WHEN CORRECT> specifies that the following text is to be displayed whenever the user selects the correct answer, and no other WHEN clause has been printed.

<WHEN INCORRECT> specifies that the following text is to be displayed whenever the user selects an incorrect answer, and no other WHEN clause has been printed.

All WHEN elements are optional; if none are given then the RESPONSES section need not be given either. In either case, a suitable default response is provided, giving feedback as to whether the selected answer was correct or not.

HINTS

See the hints section in the general document.