Scoring: string
Example: The correct solution is #$#\text{Hello}#$#.
⚠ 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 string, 1 point is awarded for a completely correct input, otherwise 0 points:
You can test the example here: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.
You can test the example here: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.
⚠ For string, partial credit is not possible because it is an elementary input field.
You can test the example here: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.
⚠ For string, partial credit is not possible because it is an elementary input field.
<input mode="penalty 2" credits="5" mincredits="-2">
<string>Hello</string>
</input>