IMS QTI 实践指南 | 03 反馈交互 Feedback

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值