Add a weight to the questions

Every question can influence the final mark with a weight that can vary from a question to the other: In this way, it is thus possible to discriminate a difficult question from an easy one.

In the main window of the application, next to the text box of the questions, there is a box labelled 'weight'.

The predefined value is 1 for all the questions, that is all questions have the same weight. For giving a greater weight, insert an integer number between 1 and 99.

Computing the final mark with weight

If pi is the weight of the question number i, given ri the answer number i that it is worth 1 if the answer is exact and 0 if it has been answer wrongly; indicating with N the number total of questions, we will have that the final mark will be calculated like:

                     p1*r1 + p2*r2 + .... pN*rN
             mark = --------------------------
                       p1 + p2 + .... + pn

For example, if you have 4 questions (with multiple answers) :

1st question : weight 3
2nd,3th,4th question : weight 1

The sum of weights is 6 (=3+1+1+1)

If your mark interval runs from 0 to 10, and if you answer correctly the 2nd,3th,4th question but you fail the first question, your final mark is 5 (because, even if you have answered correctly 3 questions on 4, the first question has a heavier weight).

Applying the formula above, we have:

               0*3 + 1*1 + 1*1 + 1*1
  mark = 0 + ---------------------------  *  (10 - 0)  =  (3 / 6) * 10 = 5
                         6