Referenceaward (Basic Use)

<award>

Basic Use Examples

<award> is an Evaluation component that defines conditions for awarding credit and evaluating user responses. An <award> is the child of an <answer> and can be used to refine credit awarded in a variety of applications.

Many attributes for <answer> can be applied to an <award> to control the behavior of just that <award>.

The following examples illustrate some of the basic award forms.
See the following pages for additional examples on using the attributes and properties.

Attributes and Properties

Attributes for <award>
AttributeTypeValues
allowedErrorInNumbers = "…"number
allowedErrorIsAbsolute = "…"boolean"true" "false"
caseInsensitiveMatch = "…"boolean"true" "false"
credit = "…"number
expandOnCompare = "…"boolean"true" "false"
feedbackCodes = "…"textList
feedbackText = "…"text
includeErrorInNumberExponents = "…"boolean"true" "false"
matchBlanks = "…"boolean"true" "false"
matchByExactPositions = "…"boolean"true" "false"
matchPartial = "…"boolean"true" "false"
numPeriodicSetMatchesRequired = "…"integer
numSignErrorsMatched = "…"number
parseScientificNotation = "…"boolean"true" "false"
referencesAreResponses = "…"
simplifyOnCompare = "…"text"none" "full" "numbers" "numberspreserveorder"
splitSymbols = "…"boolean"true" "false"
symbolicEquality = "…"boolean"true" "false"
unorderedCompare = "…"boolean"true" "false"
Props for <award name="a">
PropertyType
$a.allowedErrorInNumbersnumber
$a.allowedErrorIsAbsoluteboolean
$a.awardedboolean
$a.caseInsensitiveMatchboolean
$a.creditnumber
$a.creditAchievednumber
$a.creditAchievedIfSubmitnumber
$a.disabledboolean
$a.expandOnCompareboolean
$a.feedbackfeedback
$a.feedbackCodestextList
$a.feedbacks[ feedback ]
$a.feedbackTexttext
$a.fixedboolean
$a.fixLocationboolean
$a.fractionSatisfiednumber
$a.fractionSatisfiedIfSubmitnumber
$a.hiddenboolean
$a.includeErrorInNumberExponentsboolean
$a.matchBlanksboolean
$a.matchByExactPositionsboolean
$a.matchPartialboolean
$a.numFeedbacksnumber
$a.numPeriodicSetMatchesRequiredinteger
$a.numSignErrorsMatchednumber
$a.parseScientificNotationboolean
$a.simplifyOnComparetext
$a.splitSymbolsboolean
$a.symbolicEqualityboolean
$a.unorderedCompareboolean

Example: <award> multiple correct responses

Multiple <award> children can be used within an <answer> to ascribe credit to multiple responses.


Example: <award> based on a boolean

An <answer> can be based on a boolean condition by giving each <award> a <when> child. An <award> will be awarded if its <when> evaluates to true.


Example: <award> for partial credit

The credit attribute of the <award> component is used to assign partial credit to specific responses.


Example: <award> for tailored feedback

A named <award> can be referenced within a <feedback> to target specific responses.