tao-test/app/taoQtiItem/test/integration/samples/xml/qtiv2p1/tableInteractions.xml

217 lines
9.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd" identifier="i1480524045593249086" title="TABLES_ITEM" label="Sample table bis" xml:lang="en-US" adaptive="false" timeDependent="false" toolName="TAO" toolVersion="3.2.0-sprint55">
<responseDeclaration identifier="TABLES_ITEM_A1" cardinality="single" baseType="string">
<correctResponse>
<value><![CDATA[
308653
]]></value>
</correctResponse>
</responseDeclaration>
<responseDeclaration identifier="TABLES_ITEM_B3" cardinality="single" baseType="string">
<correctResponse>
<value><![CDATA[
4067
]]></value>
</correctResponse>
</responseDeclaration>
<responseDeclaration identifier="TABLES_ITEM_C2" cardinality="single" baseType="string">
<correctResponse>
<value><![CDATA[
25
]]></value>
</correctResponse>
</responseDeclaration>
<responseDeclaration identifier="TABLES_ITEM_D2" cardinality="single" baseType="string">
<correctResponse>
<value><![CDATA[
4
]]></value>
</correctResponse>
</responseDeclaration>
<responseDeclaration identifier="RESPONSE_1" cardinality="multiple" baseType="identifier"/>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" normalMaximum="4"/>
<outcomeDeclaration identifier="MAXSCORE" cardinality="single" baseType="float">
<defaultValue>
<value>4</value>
</defaultValue>
</outcomeDeclaration>
<stylesheet href="style/custom/tao-user-styles.css" type="text/css" media="all" title=""/>
<itemBody>
<div class="grid-row">
<div class="col-12">
<p><strong>Demographics</strong></p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing ...</p>
<p>Fill in the missing data</p>
<table>
<thead>
<tr>
<th><img alt="image" src="/path/to/img.png" /></th>
<th>Male</th>
<th>Female</th>
<th>Total</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Total</th>
<td>308 994</td>
<td>291 785</td>
<td>600 779</td>
</tr>
</tfoot>
<tbody>
<tr>
<th>Never married <img alt="image" src="/path/to/img.png" /></th>
<td>
<textEntryInteraction responseIdentifier="TABLES_ITEM_A1" base="10" placeholderText=""/>
</td>
<td>288 014</td>
<td>596 667</td>
</tr>
<tr>
<th>Married</th>
<td>325</td>
<td>3742</td>
<td>
<textEntryInteraction responseIdentifier="TABLES_ITEM_B3" base="10" placeholderText=""/>
</td>
</tr>
<tr>
<th>Divorced</th>
<td>14</td>
<td>
<textEntryInteraction responseIdentifier="TABLES_ITEM_C2" base="10" placeholderText=""/>
</td>
<td>39</td>
</tr>
<tr>
<th>Widow</th>
<td>2</td>
<td>
<textEntryInteraction responseIdentifier="TABLES_ITEM_D2" base="10" placeholderText=""/>
</td>
<td>6</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="grid-row">
<div class="col-12">
<choiceInteraction responseIdentifier="RESPONSE_1" shuffle="false" maxChoices="0" minChoices="0" orientation="vertical">
<prompt>
<p>Was the previous exercise difficult ?</p>
</prompt>
<simpleChoice identifier="choice_4" fixed="false" showHide="show">yes</simpleChoice>
<simpleChoice identifier="choice_5" fixed="false" showHide="show">no</simpleChoice>
<simpleChoice identifier="choice_6" fixed="false" showHide="show">
<p>I don't know yet, let me draw a table:</p>
<table class="gamma-table width_100">
<tbody>
<tr>
<td> </td>
<td>Something</td>
<td>Else</td>
</tr>
<tr>
<th>My first answer</th>
<td>Y</td>
<td>N</td>
</tr>
<tr>
<th>My second answer</th>
<td>N</td>
<td>Y</td>
</tr>
</tbody>
</table>
</simpleChoice>
<simpleChoice identifier="choice_7" fixed="false" showHide="show">The answer might be <m:math ><m:semantics> <m:mstyle displaystyle="true" scriptlevel="0">
<m:mrow class="MJX-TeXAtom-ORD">
<m:mfrac>
<m:mn>1</m:mn>
<m:mn>2</m:mn>
</m:mfrac>
<m:mo>+</m:mo>
<m:mn>45</m:mn>
<m:mi>y</m:mi>
</m:mrow>
</m:mstyle><m:annotation encoding="latex">\frac{1}{2}+45y</m:annotation></m:semantics></m:math></simpleChoice>
</choiceInteraction>
</div>
</div>
</itemBody>
<responseProcessing>
<responseCondition>
<responseIf>
<match>
<variable identifier="TABLES_ITEM_A1"/>
<correct identifier="TABLES_ITEM_A1"/>
</match>
<setOutcomeValue identifier="SCORE">
<sum>
<variable identifier="SCORE"/>
<baseValue baseType="integer">1</baseValue>
</sum>
</setOutcomeValue>
</responseIf>
</responseCondition>
<responseCondition>
<responseIf>
<match>
<variable identifier="TABLES_ITEM_B3"/>
<correct identifier="TABLES_ITEM_B3"/>
</match>
<setOutcomeValue identifier="SCORE">
<sum>
<variable identifier="SCORE"/>
<baseValue baseType="integer">1</baseValue>
</sum>
</setOutcomeValue>
</responseIf>
</responseCondition>
<responseCondition>
<responseIf>
<match>
<variable identifier="TABLES_ITEM_C2"/>
<correct identifier="TABLES_ITEM_C2"/>
</match>
<setOutcomeValue identifier="SCORE">
<sum>
<variable identifier="SCORE"/>
<baseValue baseType="integer">1</baseValue>
</sum>
</setOutcomeValue>
</responseIf>
</responseCondition>
<responseCondition>
<responseIf>
<match>
<variable identifier="TABLES_ITEM_D2"/>
<correct identifier="TABLES_ITEM_D2"/>
</match>
<setOutcomeValue identifier="SCORE">
<sum>
<variable identifier="SCORE"/>
<baseValue baseType="integer">1</baseValue>
</sum>
</setOutcomeValue>
</responseIf>
</responseCondition>
<responseCondition>
<responseIf>
<match>
<variable identifier="RESPONSE_1"/>
<correct identifier="RESPONSE_1"/>
</match>
<setOutcomeValue identifier="SCORE">
<sum>
<variable identifier="SCORE"/>
<baseValue baseType="integer">1</baseValue>
</sum>
</setOutcomeValue>
</responseIf>
</responseCondition>
</responseProcessing>
</assessmentItem>