Applet: uTestAnswer9

Description:
The uTestAnswer9 applet is an applet for answering Long Answer and Essay questions. It appears on the page as a large text-entry box.

Note: Answers of type "LONG" or "ESSAY" will be displayed on the bottom portion of the Answer Sheet... regardless of the question number. So to keep the numbers on the answer sheet in numeric order, you may want to put any "LONG" or "ESSAY" questions at the end of your test.

Example:

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



And here is the HTML used to generate the applet:

<APPLET CODE="uTestAnswer9.class" CODEBASE="../classes/" WIDTH=450 HEIGHT=200>
<PARAM NAME="number"                VALUE="9">
<PARAM NAME="points"                VALUE="5">
<PARAM NAME="label"                 VALUE="Enter Answer Below:">
<PARAM NAME="rows"                  VALUE="6">
<PARAM NAME="columns"               VALUE="50">
<PARAM NAME="background_color"      VALUE="#FFFFFF">
<PARAM NAME="text_color"            VALUE="#000000">
<PARAM NAME="box_background_color"  VALUE="#FFFFFF">
<PARAM NAME="box_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.
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.
label This parameter allows you to specify the text (if any) that is displayed above the large text-entry box. The default value is "Answer: ".
rows This parameter allows you to specify how many rows will be displayed in the text-entry box. You can specify any value here such as "5" or "10" or "15"... but remember to increase the overall HEIGHT of the applet accordingly. A good rule of thumb is to increase the overall HEIGHT of the applet by 30 for each row. The default value is "6" rows.
columns This parameter allows you to specify how many columns (characters) will be displayed on each row in the text-entry box. You can specify any value here such as "30" or "40" or "50"... but remember to increase the overall WIDTH of the applet accordingly. Note: At this time, the text-entry box has no automatic line-wrap... so the user will have to press return each time he/she wants to go to a new line.
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.
box_background_color This parameter allows you to specify the background color of the text-entry box. 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.
box_text_color This parameter allows you to specify color of the text within the text-entry box. 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.