Wednesday, August 24, 2011

JAVA development plan

A sample file name will be math_module1.txt
The data structure will have the first entry as the filename itself:
( minus the .txt )
module_name | question_type | question | correct_ans | first option |
second option |third option | fourth option
The question is split into tags :
%KAN% anything follow this is treated as regional language.
%ENG% anything after this is treated as English .
e;g : %KAN% kannada text %ENG% what are the 2 poles of earth
called ?



The question_type in a file can be
1. one_line_answer

2. Multiple_choice

3. yes_or_no

4. true_or_false

5. match_the_following

6. and so on.

Depending on the question_type - the line contents can vary
e.g: if it is a multiple_choice - then there will be correct_ans|question, and 4 possible answers. i.e correct_ans|question|first ptin|second|option

If it is a yes_or_no, there will be |correct_ans|question|yes|no

if it is a true_or_false , there will be |true_or_false|question|true|false

math_module1 | multiple_choice | correct_answer| what is the diameter of the Circle | 2r | 3r|4r| 2 Pi r
math_module1 | one_line_answer | what is the circumference of a circle | 2
Pi r |
gk_module1 | match_following | Cow|Horse|Fowl|Pig || piglet|chicken|Calf|
foal|cub
gk_module |true_false |True|Indian Independence was in 1947 | True |False
gk_module |yes_no|yes|Ice melts under the Sun | Yes |No
gk_module | ???? |???

The different operations one can do are :

Read File/Module : will read the file and store it based on the key
'math_module1';
Delete Module : will ask for the module name and delete it e;g:
math_module1'
List Modules: will present the different modules loaded
math_module1
math_module2
science_module 1:
List /Edit questions from module :
Should ask for module names and present it:
User can edit the module name and click on Reload or Cancel.
On Reload - it will update the module contents.
---------------
Front End will render :
- 5 single line questions
- 3 match the following
- 2 option based answers.
and will present the buttons for multiple choice, and things like that.
Shashi

No comments:

Post a Comment