Skip to content

Scoring: stringgroup

Example: The solution is "once upon a time".

⚠ 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 stringgroup, 1 point is awarded for a completely correct input, otherwise 0 points:

Example: Default Behavior
<stringgroup>
   <p>Once <input><string cloze="true">upon</string></input> a <input><string>time</string></input> ...</p>
</stringgroup>
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.

Example: whole
<stringgroup credits="6" mincredits="-2" mode="whole">
   <p>Once <input><string cloze="true">uopn</string></input> a <input><string>time</string></input> ...</p>
</stringgroup>
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. If a credit value is specified for the corresponding input element, this number of points is used. The points determined in this way 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.

⚠ In a stringgroup, all boolean input elements are interpreted and evaluated as partial results.

Example: sum
<stringgroup credits="6" mincredits="-2" mode="sum 1">
   <p>Once <input><string cloze="true">upon</string></input> a <input><string>time</string></input> ...</p>
</stringgroup>
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 used by default for each incorrect partial result. If a credit value is specified for the corresponding input element, this number of points is used. The points determined in this way 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.

⚠ In a stringgroup, all string input elements are interpreted and evaluated as partial results.

Example: penalty
<stringgroup credits="6" mincredits="-2" mode="penalty 1">
   <p>Once <input><string cloze="true">upon</string></input> a <input><string>time</string></input> ...</p>
</stringgroup>
You can test the example here:

mode="sumpenalty X Y Z"

In sumpenalty evaluation mode, points are awarded for each correct result and deducted for each incorrect (partial) result. X defines the number of points to be added for each correct partial result, starting from the value of mincredits. Y defines the number of points to be deducted for each incorrect partial result. Z, on the other hand, defines the number of points to be deducted for each unanswered partial input. If the resulting value exceeds the value of credits, the awarded points are limited to the value of credits.

⚠ In a stringgroup, all string input elements are interpreted and evaluated as partial results.

Example: penalty
<stringgroup credits="12" mincredits="-2" mode="sumpenalty 2 2 1">
<p>Once <input><string cloze="true">upon</string></input> a <input><string>time</string></input> ...</p>
</stringgroup>
You can test the example here: