Within mark calculation Formula's you can make use of variables. These for example enable you to adjust the weight of the open questions compared with the weight of the closed questions. The following variables can be used
On organization & assignment level - Static variables:
-
Total points
This is the total number of points that can be obtained by the participant for the assignment. -
Obtained points
The number of points obtained by the participant.
On assignment level only - Dynamic variables:
Depending on the question types you use in your test and whether you use sections, Ans offers additional variables for calculating a test's score. These variables below can be assigned to assignments manually or via the Assignments endpoint of the API:
-
Total points for closed questions
The total number of points that can be obtained for all closed questions. -
Total points for open questions
The total number of points that can be obtained for all open questions. -
Obtained points for closed questions
The number of scored points of all closed questions of the participant. -
Obtained points for open questions
The number of scored points of all open questions of the participant. -
Total points for section #
This is the total number of points that can be obtained by the participant for the questions in the referred section. Setting this up via he API requires you to reference the specific section ID for each section -
Obtained points for section #
The number of points obtained by the participant for the questions in the referred section. Setting this up via he API requires you to reference the specific section ID for each section
The variables can be combined with other functions and operators as described in the Formula-section of the mark calculation article. Type in the formula field to search for available variables, press enter to add them and delete or backspace to remove them again.
The variables for open questions, closed questions and sections are only available in the mark calculation formula if at least one question of that type or two different sections is present in the assignment. You can find the overview of which question types belong to closed and open questions in our Overview of question types. The same applies to sections, where there should be multiple sections in a Digital test or Written assignment for the variable to show.
error_outline If an assignment using these variables is copied, converted from digital to paper or the other way around, the marking formula will default back to the default marking formula of your organization.
Example of using mark calculation variables
Example of using mark calculation variables
Using variables in your mark calculation formula allows you to create separate mark calculations for each part of the assignment.
In the example, we use an assignment which contains two parts: an open questions part and a closed questions part. Each part has a different weighting. The assignment has the following characteristics:
Part 1: Open questions
- Number of questions: 2
- Maximum score: 10 points (5 points per question)
- Weight of this part: 60%
Part 2: Closed questions
- Number of questions: 10
- Maximum score: 10 points (1 point per question)
- Weight of this part: 40%
Mark calculation of the assignment:
For this assignment, the default Ans formula is used: 1+9*points / total. In this case, the part "points/total" is calculated twice, for both parts. As you can use parentheses in the formula, you can incorporate the calculation including the weight. This can be achieved by multiplying the score for a part with the weight. In the example below, you can adjust the 0.6 (60%) and 0.4 (40%) with the weights that are applicable for your assignment parts.
1 + 9 * ((obtained points for open questions / total points for open questions * 0.6) + (obtained points for closed questions / total points for closed question * 0.4))
Comments
0 comments
Please sign in to leave a comment.