ZedAI XForms QTI Example 5
From zedwiki
Example 5
XForms
Question 1 (the main focus of this example) cannot be represented in XForms, as such, an XForms example is not provided.
QTI
<html xmlns="http://www.w3.org/2002/06/xhtml2/"
xmlns:qti="http://www.imsglobal.org/xsd/imsqti_v2p0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:my="SYSTEM">
<head>
<title>XHTML2 + QTI Impossible in XForms Example 01</title>
</head>
<body>
<h>Table and Graph Worksheet</h>
<ol>
<li>
<qti:assessmentItem identifier="positionObjects" title="Question 1"
adaptive="false" timeDependent="false">
<qti:responseDeclaration identifier="q1" cardinality="multiple"
baseType="directedPair" />
<qti:itemBody>
<qti:p>Use the following table of time and temperature to
make a graph of the data on the grid.</qti:p>
<qti:table>
<qti:thead>
<qti:tr>
<qti:th>Time</qti:th>
<qti:th>Temperature</qti:th>
</qti:tr>
</qti:thead>
<qti:tbody>
<qti:tr>
<qti:td>1 A.M.</qti:td>
<qti:td>15°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>2 A.M.</qti:td>
<qti:td>20°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>3 A.M.</qti:td>
<qti:td>21°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>4 A.M.</qti:td>
<qti:td>23°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>5 A.M.</qti:td>
<qti:td>28°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>6 A.M.</qti:td>
<qti:td>25°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>7 A.M.</qti:td>
<qti:td>30°F</qti:td>
</qti:tr>
<qti:tr>
<qti:td>8 A.M.</qti:td>
<qti:td>32°F</qti:td>
</qti:tr>
</qti:tbody>
</qti:table>
<qti:positionObjectStage>
<qti:object type="image/png" data="images/grid.png" width="206"
height="280"/>
<qti:positionObjectInteraction responseIdentifier="q1"
maxChoices="8">
<qti:object type="image/png" data="images/point.png"
width="16" height="16"/>
</qti:positionObjectInteraction>
</qti:positionObjectStage>
</qti:itemBody>
</qti:assessmentItem>
</li>
<li>
<qti:assessmentItem identifier="textEntry" title="Question 2" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q2" cardinality="single"/>
<qti:itemBody>
<qti:p>What time is the warmest?
<qti:textEntryInteraction responseIdentifier="q2"/>
</qti:p>
</qti:itemBody>
</qti:assessmentItem>
</li>
<li>
<qti:assessmentItem identifier="textEntry" title="Question 3" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q3" cardinality="single"/>
<qti:itemBody>
<qti:p>What time is the coldest?
<qti:textEntryInteraction responseIdentifier="q3"/>
</qti:p>
</qti:itemBody>
</qti:assessmentItem>
</li>
</ol>
<section>
<h>Review</h>
<ol>
<li>
<qti:assessmentItem identifier="choice" title="Question 4" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q4" cardinality="single"/>
<qti:itemBody>
<qti:choiceInteraction responseIdentifier="q4" shuffle="false"
maxChoices="1">
<qti:prompt>What is the interval of times?</qti:prompt>
<qti:simpleChoice identifier="A">2 hours
</qti:simpleChoice>
<qti:simpleChoice identifier="B">3 hours
</qti:simpleChoice>
<qti:simpleChoice identifier="C">1 hour
colder.</qti:simpleChoice>
<qti:simpleChoice identifier="D">.5 hours
</qti:simpleChoice>
</qti:choiceInteraction>
</qti:itemBody>
</qti:assessmentItem>
</li>
</ol>
</section>
</body>
</html>

