*error_outline*This option is available through beta features, read more about beta features here.

*error_outline*This option can be enabled if the beta feature that takes all possible question types into account for guess correction is enabled.

If the beta feature Mark calculation variables is enabled, you will have the possibility to calculate partial marks for parts of the assignment and combine them into one mark. If the beta feature is enabled, Ans will provide additional variables which allows you to calculate partial marks. With this feature you can for example adjust the weight of the open questions compared with the weight of the closed questions. The variables will be enabled in the mark calculation type Formula.

Ans provides two variables by default for each assignment:

**Total points**This is the total amount of points that can be earned by the participant for the assignment.**Obtained points**The amount of scored points of the participant.

If you have randomised assignments, the total number of points may differ per participant. Ans will take this into account if you make use of variables.

Depending on the question types you are using in your assignment, Ans provides additional variables for closed- and open questions. These variables are only shown in the mark calculation formula if at least one question is present in the assignment, otherwise the variables aren't shown.

**Total points for closed questions**The total amount of points that can be earned for all closed questions.**Total points for open questions**The total amount of points that can be earned for all open questions.**Obtained points for closed questions**The amount of scored points of all closed questions of the participant.**Obtained points for open questions**The amount of scored points of all open questions of the participant.

Below, you can find the overview of which question types belong to closed and to open questions:

Closed questions |
Open questions |

Fill-in question (in case predefined answer is used) | Code editor |

Order | Drawing |

Multiple choice | Fill-in question (open answer) |

Match | Hotspot match |

Image | |

Numerical question | |

Open | |

Worksheet | |

Mathematical equation | |

Statement |

Lastly, Ans will provide variables for flow groups that are used in the test. Flow groups can be created in the **Flow** menu of a digital test. In the example below, two flow groups are present. In this case, Ans will show every question in the test, as we have set the number of selected questions for both flow groups to 2 out of 2.

In the example in the screenshot above, two flow groups are created. In the mark calculation of this assignment, the flow groups are shown as variable. You can use these variables to calculate a partial mark for the questions in this flow group. The following variables are available per flow group:

**Total points for flow group #**This is the total amount of points that can be earned by the participant for the questions in the referred flow group**Obtained points for flow group #**The amount of scored points of the participant for the questions in the referred flow group

The other functions and operators, as described in the mark calculation article, are available as well:

- Math operators: + , - , * , / , ^
- Logic functions: IF, AND, OR
- Comparison operators: <, >, <=, >=, !=, =
- Numeric functions: MIN, MAX, ROUND, ROUNDUP, ROUNDDOWN
- It's possible to insert parentheses to determine the order of (parts of) the formula

### Using variables

Using the variables works slightly different compared with the situation if the beta features is turned off. If the beta feature Mark calculation variables is enabled, you can add variables by following the steps below.

- Click the
*domain***School name**in the menu on the left. - Click
*label_important***Courses**in the menu at the top. - Select your course or use the search bar.
- Select your assignment or use the search bar.
- Click
*settings***Settings** - Click on
**Mark calculation**in the menu on the left. - If the mark calculation type isn't on Formula, change the
**Mark calculation type**to**Formula.** - In the
**Marking formula**, you can now start creating your formula. To add the predefined variables described above, you can start typing. For example, if you want to use the variable 'Total points', you can start typing these words. Ans will show matching variables. You can click to add a variable in the formula.

Hint: If you start searching for a variable, always make sure to add a space in between variables.

You can use variables multiple times in a formula. - Make use of numbers, operators, functions and variables to create your formula. If you want to remove a variable, you can click on the variable and press the delete or backspace button on your keyboard.

Using variables in your mark calculation formula allows you to create separate mark calculations for each part of the assignment. We will explain the variable possibilities with an example.

In the example, we use an assignment which contains out of 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 into the formula. 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.