Applet: uTestAnswer3

Description:
The uTestAnswer3 applet is an applet for answering Multiple-Choice questions. It appears on the page as a row of radio buttons - one for each answer option. This applet will only allow one option to be selected at a time.

Example:

Below is an example of what this applet will look like:



And here is the HTML used to generate the applet:

<APPLET CODE="uTestAnswer3.class" CODEBASE="../classes/" WIDTH=270 HEIGHT=30>
<PARAM NAME="number"             VALUE="3">
<PARAM NAME="options"            VALUE="A. Florida,B. Alabama,C. Georgia">
<PARAM NAME="first_letter_only"  VALUE="YES">
<PARAM NAME="points"             VALUE="5">
<PARAM NAME="background_color"   VALUE="#FFFFFF">
<PARAM NAME="text_color"         VALUE="#000000">
</APPLET>


Parameters:

Name Description
CODEBASE This parameter is actually part of the <APPLET> tag and therefore should be specified on the first line of the Applet (see example). It allows you to specify the location of this applet's class file. The recommended value is "../classes/". See codebase for more information.
number The question number that this applet corresponds to - such as "1" for question number 1 of the test or "25" for question number 25 of the test. This number must be an integer.
options This parameter allows you to specify a comma-delimited list of answer options. You can specify as many options in the list as you like - just be sure to separate each option with a comma. Example lists might be "A,B,C,D,E" or "Red,Blue,Green".
first_letter_only This parameter allows you to specify whether to save the answer as the entire option text - or just the first letter only of the selected option. Valid values for this parameter are "YES" or "NO". The default value is "NO".

As an example, suppose the "options" parameter was set to: "A. California,B. Florida,C. New York". If the "first_letter_only" parameter is set to "YES"... then only the first letter of the selected option (A, B, or C) will be displayed on the answer sheet. Otherwise, if the "first_letter_only" parameter is set to "NO" or left blank... then the entire selected option text (A. California, B. Florida, or C. New York) will be displayed on the answer sheet.
points The number of points this question is worth - such as "5" if the corresponding question is worth 5 points or "10" if the corresponding question is worth 10 points. The default value is "1". (Note that this parameter is only necessary if using the automatic grading option).
classification This parameter allows you to assign a specific classification to the question. It is currently not used, but may be used in the future to classify or categories questions for grading and/or statistical purposes.
background_color This parameter allows you to specify the background color of the applet. It is useful when trying to blend (or match) the applet into the page's background color. The value of this parameter can be specified as any RGB value such as "#FFFFFF" or as one of the keyword colors such as "white". See color parameter format for more information on colors.
text_color This parameter allows you to specify text color of the applet. It can be specified as any RGB value such as "#000000" or as one of the keyword colors such as "black". See color parameter format for more information on colors.
font_name This parameter allows you to specify the name of the applet's font. Typical values are "Arial", "TimesRoman" or "Verdana". The default value is "System". Note that changing the type or size of the applet's font may require you to increase the overall WIDTH of the applet. So test it out on different browser types to make sure.
font_size This parameter allows you to specify the size of the applet's font. Typical values are "10", "12" or "14". The default value is "12". Note that changing the type or size of the applet's font may require you to increase the overall WIDTH of the applet. So test it out on different browser types to make sure.