224 lines
11 KiB
XML
224 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
|
|
xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
adaptive="true" identifier="Example03-feedbackBlock-solution" timeDependent="false"
|
|
title="Example 3 - Using feedbackBlock to show a solution (random)" toolName="Mathqurate" toolVersion="0.9.7b"
|
|
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd">
|
|
<responseDeclaration baseType="float" cardinality="single" identifier="RESPONSE"/>
|
|
<responseDeclaration baseType="boolean" cardinality="single" identifier="SOLREQUEST"/>
|
|
<outcomeDeclaration baseType="identifier" cardinality="multiple" identifier="FEEDBACK"/>
|
|
<outcomeDeclaration baseType="identifier" cardinality="single" identifier="EMPTY"/>
|
|
<outcomeDeclaration baseType="float" cardinality="single" identifier="SCORE" normalMaximum="10.0"
|
|
normalMinimum="0.0">
|
|
<defaultValue>
|
|
<value>0.0</value>
|
|
</defaultValue>
|
|
</outcomeDeclaration>
|
|
<outcomeDeclaration baseType="boolean" cardinality="single" identifier="seenSolution">
|
|
<defaultValue>
|
|
<value>false</value>
|
|
</defaultValue>
|
|
</outcomeDeclaration>
|
|
<outcomeDeclaration baseType="identifier" cardinality="single" identifier="ASKSOLUTION">
|
|
<defaultValue>
|
|
<value>asksolution</value>
|
|
</defaultValue>
|
|
</outcomeDeclaration>
|
|
<templateDeclaration baseType="integer" cardinality="single" identifier="iA" mathVariable="true"
|
|
paramVariable="false"/>
|
|
<templateDeclaration baseType="float" cardinality="single" identifier="fAns" mathVariable="true"
|
|
paramVariable="false"/>
|
|
<templateDeclaration baseType="float" cardinality="single" identifier="fR" mathVariable="true"
|
|
paramVariable="false"/>
|
|
<templateProcessing>
|
|
<setTemplateValue identifier="iA">
|
|
<randomInteger max="4" min="1"/>
|
|
</setTemplateValue>
|
|
<setTemplateValue identifier="fAns">
|
|
<mathOperator name="exp">
|
|
<variable identifier="iA"/>
|
|
</mathOperator>
|
|
</setTemplateValue>
|
|
<setTemplateValue identifier="fR">
|
|
<roundTo figures="3" roundingMode="decimalPlaces">
|
|
<variable identifier="fAns"/>
|
|
</roundTo>
|
|
</setTemplateValue>
|
|
</templateProcessing>
|
|
<itemBody class="">
|
|
<div class="">
|
|
<p class="">Find the value of <m:math id="mathML0">
|
|
<m:semantics>
|
|
<m:mrow>
|
|
<m:msup>
|
|
<m:mn>e</m:mn>
|
|
<m:mi>iA</m:mi>
|
|
</m:msup>
|
|
</m:mrow>
|
|
<m:annotation encoding="LaTeX">\[\e^\qv{iA}\]</m:annotation>
|
|
</m:semantics>
|
|
</m:math> to 3 decimal places.</p>
|
|
<div class="">
|
|
<table class="">
|
|
<tbody class="">
|
|
<tr class="">
|
|
<td class="">
|
|
<textEntryInteraction expectedLength="20" id="textEntryInteraction0"
|
|
label="mathInput" responseIdentifier="RESPONSE"/>
|
|
</td>
|
|
<td class="">
|
|
<feedbackInline id="feedbackInline0" identifier="CORRECT"
|
|
outcomeIdentifier="FEEDBACK" showHide="show"> Correct </feedbackInline>
|
|
<feedbackInline id="feedbackInline1" identifier="INCORRECT"
|
|
outcomeIdentifier="FEEDBACK" showHide="show"> No, that is not
|
|
the correct answer</feedbackInline>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- this feedbackBlock contains the solution -->
|
|
<feedbackBlock class="" id="feedbackBlock2" identifier="SOLUTION"
|
|
outcomeIdentifier="FEEDBACK" showHide="show">
|
|
<div class="">
|
|
<m:math display="block" id="mathML1">
|
|
<m:semantics>
|
|
<m:mtable>
|
|
<m:mtr>
|
|
<m:mtd columnalign="right">
|
|
<m:msup>
|
|
<m:mi>e</m:mi>
|
|
<m:mi>iA</m:mi>
|
|
</m:msup>
|
|
</m:mtd>
|
|
<m:mtd columnalign="center">
|
|
<m:mo>=</m:mo>
|
|
</m:mtd>
|
|
<m:mtd columnalign="left">
|
|
<m:mi>exp</m:mi>
|
|
<m:mfenced close=")" open="(">
|
|
<m:mi>iA</m:mi>
|
|
</m:mfenced>
|
|
</m:mtd>
|
|
</m:mtr>
|
|
<m:mtr>
|
|
<m:mtd columnalign="right"/>
|
|
<m:mtd columnalign="center">
|
|
<m:mo>=</m:mo>
|
|
</m:mtd>
|
|
<m:mtd columnalign="left">
|
|
<m:mi>fR</m:mi>
|
|
</m:mtd>
|
|
</m:mtr>
|
|
</m:mtable>
|
|
<m:annotation encoding="SnuggleTeX">\begin{eqnarray*}e^\qv{iA}
|
|
&=& \exp(\qv{iA})\\ &=&
|
|
\qv{fR}\end{eqnarray*}</m:annotation>
|
|
</m:semantics>
|
|
</m:math>
|
|
</div>
|
|
</feedbackBlock>
|
|
<!-- Explain why the score is zero (after viewing solution) -->
|
|
<feedbackBlock id="feedbackBlock4" identifier="SEEN-SOLUTION"
|
|
outcomeIdentifier="FEEDBACK" showHide="show">
|
|
<p> Since you have viewed the solution, your score for this question will be 0. </p>
|
|
</feedbackBlock>
|
|
<!-- show the solution button -->
|
|
<feedbackBlock id="feedbackBlock7" identifier="asksolution"
|
|
outcomeIdentifier="ASKSOLUTION" showHide="show">
|
|
<p>
|
|
<endAttemptInteraction id="endAttemptInteraction2"
|
|
responseIdentifier="SOLREQUEST" title="Show Solution"/>
|
|
</p>
|
|
</feedbackBlock>
|
|
</div>
|
|
</itemBody>
|
|
<responseProcessing>
|
|
<setOutcomeValue identifier="FEEDBACK">
|
|
<multiple>
|
|
<variable identifier="EMPTY"/>
|
|
</multiple>
|
|
</setOutcomeValue>
|
|
<responseCondition>
|
|
<responseIf>
|
|
<variable identifier="SOLREQUEST"/>
|
|
<setOutcomeValue identifier="FEEDBACK">
|
|
<multiple>
|
|
<baseValue baseType="identifier">SOLUTION</baseValue>
|
|
</multiple>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="seenSolution">
|
|
<baseValue baseType="boolean">true</baseValue>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="completionStatus">
|
|
<baseValue baseType="identifier">completed</baseValue>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="ASKSOLUTION">
|
|
<baseValue baseType="identifier">null</baseValue>
|
|
</setOutcomeValue>
|
|
</responseIf>
|
|
<responseElse>
|
|
<responseCondition>
|
|
<responseIf>
|
|
<isNull>
|
|
<variable identifier="RESPONSE"/>
|
|
</isNull>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<baseValue baseType="float">0</baseValue>
|
|
</setOutcomeValue>
|
|
</responseIf>
|
|
<responseElse>
|
|
<responseCondition>
|
|
<responseIf>
|
|
<equalRounded figures="3" roundingMode="decimalPlaces">
|
|
<variable identifier="RESPONSE"/>
|
|
<variable identifier="fAns"/>
|
|
</equalRounded>
|
|
<setOutcomeValue identifier="FEEDBACK">
|
|
<multiple>
|
|
<baseValue baseType="identifier">CORRECT</baseValue>
|
|
</multiple>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<baseValue baseType="float">2</baseValue>
|
|
</setOutcomeValue>
|
|
</responseIf>
|
|
<responseElse>
|
|
<setOutcomeValue identifier="FEEDBACK">
|
|
<multiple>
|
|
<baseValue baseType="identifier">INCORRECT</baseValue>
|
|
</multiple>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<baseValue baseType="float">0</baseValue>
|
|
</setOutcomeValue>
|
|
</responseElse>
|
|
</responseCondition>
|
|
<setOutcomeValue identifier="completionStatus">
|
|
<baseValue baseType="identifier">completed</baseValue>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="ASKSOLUTION">
|
|
<baseValue baseType="identifier">null</baseValue>
|
|
</setOutcomeValue>
|
|
<responseCondition>
|
|
<responseIf>
|
|
<variable identifier="seenSolution"/>
|
|
<setOutcomeValue identifier="FEEDBACK">
|
|
<multiple>
|
|
<variable identifier="FEEDBACK"/>
|
|
<baseValue baseType="identifier">SEEN-SOLUTION</baseValue>
|
|
</multiple>
|
|
</setOutcomeValue>
|
|
<setOutcomeValue identifier="SCORE">
|
|
<baseValue baseType="float">0.0</baseValue>
|
|
</setOutcomeValue>
|
|
</responseIf>
|
|
</responseCondition>
|
|
</responseElse>
|
|
</responseCondition>
|
|
</responseElse>
|
|
</responseCondition>
|
|
</responseProcessing>
|
|
</assessmentItem>
|