Scoring: interval
Example: The correct solution is #$#[0;1)#$#.
⚠ In general, the examples do not represent meaningful scoring schemes but are intended to document the behavior.
Default Behavior
If no attributes are defined for interval, 1 point is awarded for a completely correct input, otherwise 0 points:
<input>
<interval closure="closedopen"><number>0</number><number>1</number></interval>
</input>
mode="whole"
In whole evaluation mode, the input is evaluated as a whole. This is the default evaluation mode. The user receives the (maximum) score specified by the credits attribute (default value: 1) for a completely correct input, and the minimum score defined by the mincredits attribute (default value: 0) for an incorrect input.
<input mode="whole" credits="5" mincredits="-2">
<interval closure="closedopen"><number>0</number><number>1</number></interval>
</input>
mode="sum X"
In sum evaluation mode, points are awarded exclusively for correct (partial) results. X defines the number of points awarded by default for each correct partial result. These points are added to the value of mincredits. If the resulting value exceeds the value of credits, the awarded points are limited to the value of credits.
⚠ interval consists of three partial results: the value of the left endpoint, the value of the right endpoint, and whether the interval matches the value specified in closure.
<input mode="sum 2" credits="5" mincredits="-2">
<interval closure="closedopen"><number>0</number><number>1</number></interval>
</input>
mode="penalty X"
In penalty evaluation mode, points are deducted for each incorrect (partial) result. X defines the number of points to be deducted for each incorrect partial result. These points are subtracted from the value of credits. If the resulting value is lower than the value of mincredits, the awarded points are limited to the value of mincredits.
⚠ interval consists of three partial results: the value of the left endpoint, the value of the right endpoint, and whether the interval matches the value specified in closure.
<input mode="penalty 2" credits="5" mincredits="-2">
<interval closure="closedopen"><number>0</number><number>1</number></interval>
</input>