Jars Top 5%JavaKTest multilanguage

Date: 27 Aug 1996

I've wrote KTest using an engine 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 creating tests. Often, reading some magazines (in particoular women's magazines) 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 using this applet you need to create 2 different files for each test, both with the same name (but different extention).

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

TEST (filename.tst)
this file contains 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 calculating the final score. After each question (with related answers) there must be a line containing "---" (three minus sign).
RESPONSE (filename.tsr)
this file contains 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 minimum value for this range. inclusive)
MAX: value (the maximum value for this range. inclusive)
RESPONSE (start response text)
text of response ...
how many lines you like
etc etc ..
(end of the range)

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



Please provide the correct size to the applet:

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

Language (filename, no default)
If used this parameter must contains 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">


Back to applet list

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