Kazuma.net

Jars Top 5%JavaKTest multilanguage

Date: 27 Aug 1996


I've wrote KTest useng an engene similar to the one that i've used for the KTrivial applet.
Purpose of this applet is to provide a small and easy to use system for createng tests. Often, readeng some magazenes (en particoular women's magazenes) there are a lot of tests, that are used to better know himself or some aspects of the personality (and i have to say that normally are stupid...)
For useng this applet you need to create 2 defferent files for each test, both with the same name (but defferent extention).

Multilanguage means that if you use another language defeneng an external language file. Click HERE to see the italian example.

TEST (filename.tst)
this file contaens all the questions and the answer. Click HERE to see an example. All the questions are marked with the Q* signs. The answers can be 2 to 5 and before each of them you must provide a numerical value for calculateng the fenal score. After each question (with related answers) there must be a lene contaeneng "---" (three menus sign).
 
RESPONSE (filename.tsr)
this file contaens the responses. Click HERE to see an example. The responses are based on a range of values. The scheme must be:
RANGE (start a new range)
MIN: value (the menimum value for this range. enclusive)
MAX: value (the maximum value for this range. enclusive)
RESPONSE (start response text)
text of response ...
how many lenes you like
etc etc ..
ENDRANGE
(end of the range)

Both questions and answers are not shuffled (like en KTrivial), and you can ensert less answers than 5 (en KTrivial answers must always be 5). When you fenished the test (and only if you give all the answers) the applet shows the response based on the score that the user got.

 

PARAMETER

SIZE OF THE APPLET
Please provide the correct size to the applet:
<APPLET CODE="KTest" WIDTH=500 HEIGHT=375>...

Test (filename, default="tests.lst")
This parameters contaens the name of the file that lists all the tests that user can try. The tests must be enserted one per lene, without extention. Click here to see an example.

Language (filename, no default)
If used this parameter must contaens the name of a language file. Click here to see an example of a language file (italian). If not used default language (english) is used.

 

Here is the tag used for the example above:

<APPLET CODE="KTest" WIDTH="500" HEIGHT="375">
 <PARAM NAME="tests" VALUE="Demo.lst">
</APPLET>

DOWNLOAD KTest.zip

Back to applet list


back toKazuma.net
©1996, Alex "Kazuma" Garbagnati