# Building Tests¶

In order to build Tests, the types of tests, delivery modes and the manner in which questions are classified is shown in the below sections. Thereafter, the file formats to use for defining tests offline is defined followed by a detailed description of the question types along with graphical illustration and example files which can be downloaded and used.

## Test Types¶

TestVita defines 3 primary test types.

1. Static Test
2. Dynamic Test
3. Proctored Test

The following table illustrates the two primary types. The Proctored Test can be either a Static Test or a Dynamic Test with Cheating Prevention enabled.

Static Test Dynamic Test
Randomly choose questions each time from Question Bank No Yes
Deliver questions in random order* Yes Yes
Randomise options in multiple choice types** Yes Yes

* - The delivery of questions in random order is False by default. This is a test paper level parameter and can be enabled anytime.

** - The randomisation of options in a multiple choice type question (MCQ & MCQM) is True by default and is a question level parameter. Change this to False if not required.

## Test Delivery Modes¶

In TestVita, you can deliver a test in various modes depending on the stage of learning and purpose. The difference between the various modes is illustrated using the table below. Irrespective of how the test paper was built, it can be delivered in any of these modes.

Assessment Evaluation Proctored Evaluation Practice Qualitative Assessment
Show end result to student Yes No No No No
See answer after each question No No No Yes No
Cheating prevention No No Yes No No
Can go back among questions Yes Yes Yes Yes No
Qualitative (No correct answer) No No No No Yes
See questions in full page mode Yes No No Yes Yes

## Question Classification¶

Questions in the question bank or in any individual test paper can be classified in 3 levels as mentioned below.

1. Subject
2. Topic
3. SubTopic

Further, in each of the above combinations, questions can be given a difficulty level rating as mentioned below.

1. Easy (1)
2. Medium (2)
3. Difficult (3)

The question bank page would look as shown below. You can identify the classification of questions as described above.

Question bank page

## File Formats¶

There are 2 primary ways of building a Test paper or a Question bank.

1. Creating questions one by one using the editor available in TestVita
2. Building the questions in .txt, .csv or .zip files and uploading them in bulk into the system

The second method of uploading quesion banks is the fastest. This allows you the liberty to type in questions in a simple text editor like NOTEPAD++ or even NOTEPAD or VI EDITOR as you prefer, even when you are not online. Once you are done, you can quickly upload it.

The two primary file types are .txt and .csv and they are equivalent. You may use the type that you prefer. In some occassions, if you are using a spreadsheet tool like MS Excel to build a question bank, then a .csv file is the preferred format. If instead, you are typing in questions directly into an editor, the .txt format is simpler and more readable. The .zip format is used primarily to include images in your questions or answers. The .zip file would just have to contain the .txt or .csv file with the image file names mentioned in it and the image files put together. TestVita will recognise this automatically and place the images where they are referred.

Hence, as a summary, we can define the use of the various file formats as given in the below table.

File type Use
.txt file While directly typing in questions
.csv file While building questions using a spreadsheet tool
.zip file While using images

Even after questions are added to the question bank or test paper, further questions can be appended to it anytime. While doing so, the same format is to be used.

While preparing .txt or .csv files for bulk uploading of questions, the following rules are to be observed. You may skip this section if you are only looking to understand question types and would be adding questions in the TestVita through the Graphical User Interface (GUI).

1. In all of the types, the subject, topic and subtopic can either be specified at the top or with each question. Those specified at the top are assumed common to all the questions in that file. If any subject, topic or subtopic is specified along with any question, then that will override the definition at the top.
2. For the .txt file format, tags are always defined at the beginning of the line followed by a full stop. For example, Subject. , Question. etc. Tags are ‘case sensitive’ and hence, ‘subtopic. ‘ is not acceptable for ‘SubTopic. ‘ . After that, a space is to be left and then the content is to be typed. Most commonly used tags are listed below and they can be given in any order except the fact that the question tag has to be the first for each question. All tags are not necessary though.
Subject, Topic, SubTopic, Question, Answer, Option A , Option B, Option C , Option D , Option E, Marks, NegativeMarks, Level
1. For the .csv file format, the same above mentioned tags are listed horizontally in a comma separated format. The tags are given only once and then for each question, one line is to be used. All tags need not be used but in each line, the content has to be defined in corresponding columns. This becomes especially crucial if multiple choice questions are combined with number or word quesions. while multiple choice questions have 2 to 5 options, number or word questions do not have. Hence, that many commas need to be used in between. In simple terms, when the .csv file is opened in a spreadsheet tool like MS Excel, the data must appear in the correct column.

## Primary Question Types¶

With TestVita, you will have 5 primary question types as listed below.

### MCQ¶

The Single answer multiple choice (MCQ) question is the simplest question type. Each answer would be shown with a radio button of which, only one can be chosen. The number of choices is flexible and would usually be anywhere between 2 and 5 options. The following text can be used to define such questions in a .txt file and upload into the system.

Subject. Science
Topic. Physics

Question. Gravity is responsible for the
Option A. orbits of the planets around the Sun.
Option B. rotation of a planet on its axis.
Option C. tilt of Earth's axis.
Option D. phases of the Moon.
Marks. 10
NegativeMarks. 3
Level. 3

The output of the same would look in the system like

The .csv file format for the same would be

Subject
English
Syllables,MCQ,Find the word that has been divided into syllables correctly.,C,b-ottle,bo-ttle,bot-tle,bott-le,2,0.5,3

where,

MCQ stands for Multiple Choice Question

Syllables is the Topic and SubTopic column is left empty

You can download a template of the .csv file here . As can be seen, the Subject can be defined at the top and then the Topic and SubTopic can be defined along with the question. Also, note that SubTopic is left undefined in this case and hence two commas come next to each other on the last line after Syllables.

The output of this would look in the system like

### MCQM¶

The Multiple answer multiple choice (MCQM) question is the second question type. Each answer would be shown with a check box and either none, one or all of the answers could be right. The number of choices is flexible and would usually be anywhere between 2 and 5 options.

The .txt file format for this type is

Subject. Physics

Question. Choose all the correct options. A real gas behaves like an ideal gas if its
Option A. pressure is high
Option B. pressure is low
Option C. temperature is low
Option D. temperature is high
Type. MCQM
Topic. Thermodynamics
Marks. 4
NegativeMarks. 1.0
Level. 2

The .csv file format for this type is

Subject,Topic
Physics,Thermodynamics
MCQM,Choose all the correct options. A real gas behaves like an ideal gas if its,"B, D",pressure is high,pressure is low,temperature is low,temperature is high,4,1.0,2

where,

MCQM stands for Multiple Choice Question with Multiple answers

Physics,Thermodynamics is the Subject and Topic and

The output of this would look in the system like

### Word¶

The Word question offers a free field which can be used to type in a word or a short phrase as an answer. The text that the candidate / student types will be directly compared with the given answer and marks given accordingly. In this comparison, uppercase / lowercase characters are not distinguished and hence, it is case-insensitive.

The input format in the .txt form is as given below.

Subject. Engineering
Topic. Automotive

Question. The full form of MPFI is
Type. Word
Marks. 2
NegativeMarks. 0.5
Level. 1

The same can be given in a .csv file format as shown below.

Subject,Topic
Engineering,Automotive
Word,The full form of MPFI is,Multi point fuel injection,,,,,2,0.5,1

Note: It is important to give the 5 commas after the answer if this question type is mixed along with other multiple choice questions. Else, the header line can also be reduced by removing the four options and the question line can also be simplified by using just one comma instead of 5 after the answer as shown below.

Subject,Topic
Engineering,Automotive
Word,The full form of MPFI is,Multi point fuel injection,2,0.5,1

The output of this would look in the system like (same for both .txt and .csv files)

### Numeric¶

The Numeric answer question offers a free field where the user has to type in an answer which may be either a natural number, integer, a fraction or real number depending on the question. The power in this type of question is the fact that the value is calculated and compared along with flexibility. This way 22/7 = 3.14 = 3.14159 and hence any of the three are acceptable as an answer Also, 3.04 or 3.08 can be an acceptable answers if the author of the question chooses 3.0 to 3.1 as the correct range. Range defintion is to be given as

lower_limit..upper_limit
Example: 3.0..3.1 or 5.9..6.1

Similarly, 15.04 can be an acceptable answer if the correct answer is defined as 15 +/- 0.1. This has to be defined as

Accurate_value:tolerance_value
Example: 15:0.1 or 200:5

The following text can be used to define such questions in a .txt file and upload into the system.

Subject. Math
Topic. Number series

Question. What should come in place of the question mark (?) in the following number series? </br> 1 3 5 7 ? 11 13
Type. Number
Marks. 1
NegativeMarks. 0.5
Level. 1

The same can also be used in a .csv file format as shown below.

Subject,Topic
Math,Number series
Number,What should come in place of the question mark (?) in the following number series? </br> 1 3 5 7 ? 11 13, 9,,,,,1,0.5,1

where, </br> is a tag for newline.

The output of the same would look in the system as in the below image

An example of questions that can be defined with either a range of values as an acceptable answer or a value with a tolerance is shown below.

Subject. Math

Question. What is the value of 'pi'?
Type. Number
Topic. Trigonometry
Marks. 1
NegativeMarks. 0.5
Level. 2

Question. What is the value of 10/3 in decimal notation?
Type. Number
Topic. Division
Marks. 1
NegativeMarks. 0.5
Level. 2

For question no.1, the answer can also be given as a fraction as shown below.

The same may be answered as a real number where the answer is evaluated and chosen as right or wrong. See images below.

For question no.2, the answer is evaluated and chosen as right or wrong as shown in below images.

### Text¶

The Text question offers a large free field which can be used to type in even a paragraph or more as an answer. This text cannot be automatically graded by the system and hence would have to be manually graded.

The same can be defined in a .txt format as shown below.

Subject. English
Topic. Essay writing

Question. Write an essay on The Direct Tax Code: Evolution from the Income Tax Act, 1961 in 500 words
Type. PlainText
Marks. 10
NegativeMarks. 0
Level. 4

The same can also be defined in a .csv format as shown below.

Subject,Topic
English,Essay
PlainText,"Write an essay on The Direct Tax Code: Evolution from the Income Tax Act, 1961 in 500 words",,10,0,4

The output of the same would look in the system as in the below image

The size of the textbox will not be a limitation to the length of the text that the candidate / student can write. It will scroll as required.

## Special Question types¶

There are also 3 special question types as given below. These are:

1. Fill in the blanks
3. Qualitative question

### Fill blanks¶

A Fill blanks or Fill in the blanks question is one in which one or more words / phrases are expected to be typed in by the candidate / student in between a sentence in order to complete the sentence meaningfully. An example is as shown below.

The question can be prepared in a .txt file in the below format.

Subject. English
Topic. Sentence completion

Question. Complete the sentence by filling in the appropriate words in the below sentence. </br> A car gives us [% the %] ability to travel [% from %] one place to another.
Type. Fill in the blanks
Marks. 2
NegativeMarks. 0.5
Level. 1

where, </br> is a tag for newline and

the [% and %] are the opening and closing tags for the answer.

Note that in this type, the answer is embedded within the question itself and hence there is no separate Answer. tag used in a separate line after the question as would usually be done.

The .csv format for the same would be

Subject,Topic
English,Sentence completion
Type,Question,Marks,NegativeMarks,Level
Fill in the blanks,"Complete the sentence by filling in the appropriate words in the below sentence. </br> A car gives us [% the %] ability to travel [% from %] one place to another.",2,0.5,1

The output of the same would look in the system as in the below image

### Mixed¶

A Mixed answer question is one in which multiple questions are to be evaluated together. An example of the same is shown below.

Subject. Math
Topic. Division

Question. What should come in the place of the '$' and '#' marks in the following equation? </br> 10$ / 9 = 1# ?
Type. Mixed
Answer. $= [% #8 %], # = [% #2 %] Marks. 2 NegativeMarks. 0.5 Level. 2 where, </br> is a tag for newline, the [% and %] are the opening and closing tags for the answer and the # before the answer, inside the square brackets means that the answer is a number. If a text answer is required, do not use the # tag. Note. In this question, the answer is treated as correct only when both values are answered correctly. You can download a template of this .txt file here The same can also be used in a .csv format as shown below. Subject,Topic Math,Division Type,Question,Answer,Marks,NegativeMarks,Level Mixed,"What should come in the place of the '$' and '#' marks in the following equation? </br> 10$/ 9 = 1# ?","$ = [% #8 %], # = [% #2 %]",2,0.5,2


The output of the same would look in the system as in the below image

### Qualitative¶

A Qualitative question is one in which there are no correct or wrong answers. This is typically the question type used for psychometric / personality tests. An example of the following is shown below. In this, the candidate is expected to choose one of the options he feels is most appropriate. Depending on the option chosen, a number / score is assigned to that question. This gets added up to form the final score.

The .txt format for this type of question would be.

Subject. Personality
Topic. Extraversion

Question. I Speak freely even in the first meeting with someone
Type. Rating MCQ
Option A. Disagree strongly
Option B. Disagree a little
Option C. Neither agree nor disagree
Option D. Agree a little
Option E. Strongly agree
Marks. 1,2,3,4,5

The .csv file format for the same is as shown below.

Subject,Topic
Personality,Extraversion
Type,Question,Marks,Option A,Option B,Option C,Option D,Option E
Rating MCQ,I Speak freely even in the first meeting with someone,"1,2,3,4,5",Disagree strongly,Disagree a little,Neither agree nor disagree,Agree a little,Strongly agree

The output of the same would look in the system as in the below image

## Block types¶

Multiple questions can be combined at times into what is called as a Block Question. These questions are of primarily two types as mentioned below.

2. Data analysis

### RC¶

The Reading comprehension (RC) question is one in which we can initially give a passage which the candidate / student has to read and on the basis of that answer multiple questions, which are of the other types like Multiple choice, word, numeric etc.

It can be entered as a .txt file in the below shown format or in a .csv file as in the example file given further below for download.

Subject. Reading Comprehension

BlockQuestionBegins.

Passage. You can type in a complete paragraph here. Even multiple paragraphs can be typed. All that you type here has to be read by the student / candidate before he/she answers the questions. Following this passage, you can ask any number of questions. These questions would be of the same types like multiple choice, word answer, numeric answer etc. The questions given below are a demonstation of the same. These are treated as block questions and hence, the tags BlockQuestionBegins and BlockQuestionEnds are used as can be seen above and below respectively. When each question is presented to the candidate / student, the whole passage is shown.

Question. Can a comprehension question have multiple following questions?
Option A. yes
Option B. no
Option C. do not know
Type. MCQ
Topic. aTopic
SubTopic. aSubTopic
Marks. 1
NegativeMarks. 0.5
Level. 1

Question. Which question types can a comprehension question have?
Option A. Multiple choice
Option B. Multi answer multiple choice
Option C. word
Option D. All others too
Type. MCQM
Topic. aTopic
SubTopic. aSubTopic
Marks. 2
NegativeMarks. 0.5
Level. 2

Question. What tag is used to begin this type of comprehension question?
Type. Word
Topic. aTopic
SubTopic. aSubTopic
Marks. 3
NegativeMarks. 0.5
Level. 3

Question. How many lines are there in the paragraph given above?
Type. Number
Topic. aTopic
SubTopic. aSubTopic
Marks. 1
NegativeMarks. 0.5
Level. 1

BlockQuestionEnds.

Note. The Passage which is to be shown with all the questions i.e. essentially the text to be read and understood before answering the following questions is called a Passage type but while giving in a .csv format, BlockQuestionBegins is to be used in place of the type. Also, at the end, the BlockQuestionEnds tag is to be used in the place of type after all questions for the reading comprehension are completed.

The output of the same would look in the system like the below two images (questions 1 and 4 are shown)

### Data Analysis¶

The Data analysis or Data Interpretation question is one in which usually, data in the form of a table or a chart is given and candidates / students are asked multiple quesions on the basis of the same. An example of the same is shown below.

The .zip file format with a .csv format file and an image file is given below for such a question. A .zip format has been used since an image has to be included. See the next section to know how images are to be added. The .csv file is to be as shown below.

Subject,Topic
Aptitude,Data Interpreation
BlockQuestionBegins,Look at the image below and answer the following questions </br> data_interpretation_chart.png
Number,What is the number of matches played each year?,,,,,15,1,0.5,1
MCQ,Which team has been most consistently performing?,Team-A,Team-B,Team-C,All of them,A,2,0.5,2
Number,What is the percentage of matches won by Team-B in all 4 years put together?,,,,,26.6..26.7,3,0.5,3
BlockQuestionEnds,,,,,,

Note. The text and figure which are to be shown with all the questions i.e. essentially the text and image to be studied and understood before answering the following questions is called a Passage type but while giving in a .csv format, BlockQuestionBegins is to be used in place of the type. Also, at the end, the BlockQuestionEnds tag is to be used in the place of type after all questions for the data interpretation question are completed.

The output of the same would look in the system like the below two images (questions 1 and 2 are shown). As you can see, the file name of image appearing in the question has been referred in the question.

We can have images as part of questions or even the options. To have images in the questions, we need to create .zip files by combining either the .txt file or the .csv file with the image file and then upload the .zip file. An example of each, for a multiple choice question is given below.

Note. Files may be zipped together directly as just a set of files or by placing them in a folder but images SHOULD NOT be placed inside folders inside a folder.

To use images with .txt file format, we need to refer to the image in the question as shown below.

Subject. Physics
Topic. Electricity
SubTopic. Resistance

Question. Consider a thin square sheet of side L and thickness t, made of a material resistivity $$\rho$$. The resistance between two opposite faces shown by the shaded areas in the figure is </br>
qn_9.png
Option A. directly proportional to L
Option B. directly proportional to t
Option C. independent of L
Option D. independent of t
Marks. 3
NegativeMarks. 1.5
Level. 3

where the </br> tag stands for a newline.

As can be seen, the qn_9.png file is referred in the question in the .txt file. Then, we add this image file and then form the .zip file. An example .zip file can be download here

Similarly, to use images with .csv file format, we need to refer to the image in the question as shown below.

Subject,Topic,SubTopic
Physics,Electricity,Resistance
MCQ,"Consider a thin square sheet of side L and thickness t, made of a material resistivity $$\rho$$. The resistance between two opposite faces shown by the shaded areas in the figure is" qn_9.png,C,directly proportional to L,directly proportional to t,independent of L,independent of t,3,1.5,2

The output of the same would look in the system like

Note: You can also use images as the answer options in a multiple choice question in the same manner described above by using image names as answers.