IMS QTI 实践指南
版本: 2.1 Final
发布日期: 2012年8月31日
最新版本
Copyright © 2005-2012 IMS Global Learning Consortium. All Rights Reserved.
feedback
feedback
是根据responseProcessing
的结果有条件地呈现的内容。换句话说,feedback
是由结果变量的值控制的。
反馈材料有两种类型,modal 和 inline。
modal 在responseProcessing
完成后,在任何后续操作或回顾之前显示的。
inline被嵌入到 itemBody
中,并且只在后续操作或回顾中显示。
modalFeedback
<!-- This item is a true/false question with modal feedback, adapted from the CC question QUE_102010.xml -->
<assessmentItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd" identifier="Example01-modalFeedback" title="Example 1 - modal feedback" adaptive="false" timeDependent="false">
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
<!-- The response variable RESPONSE will hold the candidate's input -->
<correctResponse>
<!-- The value of the right answer is declared -->
<value>true</value>
</correctResponse>
</responseDeclaration>
<!-- Define a feedback variable; its baseType is "identifier" so that it can contain
the identifier of the feedback message -->
<outcomeDeclaration identifier="FEEDBACK" cardinality="single" baseType="identifier"/>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" normalMaximum="10.0">
<defaultValue>
<value>0</value>
</defaultValue>
</outcomeDeclaration>
<outcomeDeclaration identifier="MAXSCORE" cardinality="single" baseType="float">
<defaultValue>
<value>10.0</value>
</defaultValue>
</outcomeDeclaration>
<itemBody>
<choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
<prompt>Sigmund Freud and Carl Jung both belong to the psychoanalytic school of psychology.</prompt>
<simpleChoice identifier="true" fixed="true">True </simpleChoice>
<simpleChoice identifier="false" fixed="true">False </simpleChoice>
</choiceInteraction>
</itemBody>
<responseProcessing>
<responseCondition>
<responseIf>
<match>
<!-- The value of RESPONSE is compared with the correct value identified
in the RESPONSE declaration -->
<variable identifier="RESPONSE"/>
<correct identifier="RESPONSE"/>
</match>
<setOutcomeValue identifier="SCORE">
<variable identifier="MAXSCORE"/>
</setOutcomeValue>
<setOutcomeValue identifier="FEEDBACK">
<baseValue baseType="identifier">correct</baseValue>
</setOutcomeValue>
</responseIf>
<responseElse>
<!-- Depending on whether the input matches the correct answer or not, FEEDBACK
is given the value of the identifier of the appropriate feedback message -->
<setOutcomeValue identifier="FEEDBACK">
<baseValue baseType="identifier">incorrect</baseValue>
</setOutcomeValue>
</responseElse>
</responseCondition>
</responseProcessing>
<!-- Note how the identifiers in the following modalFeedback elements match those of the
setOutcomeValue elements above -->
<modalFeedback outcomeIdentifier="FEEDBACK" showHide="show" identifier="correct">it is correct</modalFeedback>
<modalFeedback outcomeIdentifier="FEEDBACK" showHide="show" identifier="incorrect">it is incorrect</modalFeedback>
</assessmentItem>
feedbackInline
<!-- This item is a true/false question with inline feedback, adapted from the CC question QUE_102010.xml -->
<assessmentItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd" identifier="Example02-feedbackInline" title="Example 2 - inline feedback" adaptive="false" timeDependent="false">
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
<correctResponse>
<value>true</value>
</correctResponse>
</responseDeclaration>
<!-- Define a feedback variable; its baseType is "identifier" so that it can contain the identifier
of the feedback message -->
<outcomeDeclaration identifier="FEEDBACK" cardinality="single" baseType="identifier"/>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" normalMaximum="10.0">
<defaultValue>
<value>0</value>
</defaultValue>
</outcomeDeclaration>
<outcomeDeclaration identifier="MAXSCORE" cardinality="single" baseType="float">
<defaultValue>
<value>10.0</value>
</defaultValue>
</outcomeDeclaration>
<itemBody>
<!-- The response variable RESPONSE will hold the candidate's input -->
<choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
<prompt>Sigmund Freud and Carl Jung both belong to the psychoanalytic school of psychology.</prompt>
<simpleChoice identifier="true" fixed="true">
True
<!-- The feedbackInline elements are each given the same identifier as the
corresponding option. -->
<feedbackInline outcomeIdentifier="FEEDBACK" identifier="true" showHide="show">
That's correct
</feedbackInline>
</simpleChoice>
<simpleChoice identifier="false" fixed="true">
False
<feedbackInline outcomeIdentifier="FEEDBACK" identifier="false" showHide="show">
That's not correct
</feedbackInline>
</simpleChoice>
</choiceInteraction>
</itemBody>
<responseProcessing>
<!-- This time, FEEDBACK is given the value of the identifier of the option which was selected. -->
<setOutcomeValue identifier="FEEDBACK">
<variable identifier="RESPONSE"/>
</setOutcomeValue>
<responseCondition>
<responseIf>
<match>
<variable identifier="RESPONSE"/>
<correct identifier="RESPONSE"/>
</match>
<setOutcomeValue identifier="SCORE">
<variable identifier="MAXSCORE"/>
</setOutcomeValue>
</responseIf>
</responseCondition>
</responseProcessing>
</assessmentItem>