-
MathType
-
WirisQuizzes
-
LearningLemur
-
CalcMe
-
MathPlayer
-
Store FAQ
-
VPAT for the electronic documentation
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Custom marks
Reading time: 1minWe'll show a simple example of a grading function with several outputs. The idea will be to award more marks for every level of correctness in the answer.
We want to ask the following question in basic arithmetic:
With partial credit awarded for each correct property of the student's answer. Say these are young children, and we consider the most challenging part to correctly give a number whose remainder is 2 when divided by 7. We'll award 0.4 marks for that and 0.3 for each of the other properties. Additionally, we only want to give half marks for the rest of the properties if the answer falls in the first one (the purpose of decrease_mark).
Observe that to make a more extended grading function with multiple conditionals and calculations; we must enclose it with the begin..end statements and use return to define the function's output.
The question is completed now. Make sure to tick the "grading function" option in the Validation options section as described earlier, and give any particular correct value in the Correct Answer blank. We can see that both of these responses are correct:

We've used a relatively simple question as an example, but we can already see that grading functions can be made to have a very customized and complex design.