qti 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +28 -0
  3. data/Rakefile +1 -0
  4. data/lib/qti.rb +62 -0
  5. data/lib/qti/models/base.rb +80 -0
  6. data/lib/qti/models/manifest.rb +20 -0
  7. data/lib/qti/v1/models/assessment.rb +17 -0
  8. data/lib/qti/v1/models/assessment_item.rb +59 -0
  9. data/lib/qti/v1/models/base.rb +13 -0
  10. data/lib/qti/v1/models/choices/logical_identifier_choice.rb +26 -0
  11. data/lib/qti/v1/models/interactions/logical_identifier_interaction.rb +32 -0
  12. data/lib/qti/v2/models/assessment_item.rb +62 -0
  13. data/lib/qti/v2/models/assessment_test.rb +32 -0
  14. data/lib/qti/v2/models/base.rb +70 -0
  15. data/lib/qti/v2/models/choices/simple_choice.rb +28 -0
  16. data/lib/qti/v2/models/interactions.rb +25 -0
  17. data/lib/qti/v2/models/interactions/choice_interaction.rb +50 -0
  18. data/spec/fixtures/items_1.2/multiple_answer.xml +105 -0
  19. data/spec/fixtures/items_1.2/multiple_choice.xml +83 -0
  20. data/spec/fixtures/items_1.2/true_false.xml +50 -0
  21. data/spec/fixtures/items_2.1/Example01-modalFeedback.xml +79 -0
  22. data/spec/fixtures/items_2.1/Example02-feedbackInline.xml +67 -0
  23. data/spec/fixtures/items_2.1/Example03-feedbackBlock-solution-random.xml +223 -0
  24. data/spec/fixtures/items_2.1/Example03-feedbackBlock-solution.xml +238 -0
  25. data/spec/fixtures/items_2.1/Example04-feedbackBlock-templateBlock.xml +582 -0
  26. data/spec/fixtures/items_2.1/Example05-feedbackBlock-adaptive.xml +397 -0
  27. data/spec/fixtures/items_2.1/adaptive.xml +286 -0
  28. data/spec/fixtures/items_2.1/adaptive_template.xml +350 -0
  29. data/spec/fixtures/items_2.1/associate.xml +33 -0
  30. data/spec/fixtures/items_2.1/audio-video.xml +46 -0
  31. data/spec/fixtures/items_2.1/choice.xml +31 -0
  32. data/spec/fixtures/items_2.1/choice_aria.xml +42 -0
  33. data/spec/fixtures/items_2.1/choice_fixed.xml +33 -0
  34. data/spec/fixtures/items_2.1/choice_multiple.xml +31 -0
  35. data/spec/fixtures/items_2.1/choice_multiple_chocolade.xml +74 -0
  36. data/spec/fixtures/items_2.1/choice_multiple_rtl.xml +33 -0
  37. data/spec/fixtures/items_2.1/choice_ruby.xml +39 -0
  38. data/spec/fixtures/items_2.1/choice_t_f.xml +30 -0
  39. data/spec/fixtures/items_2.1/choice_true_false.xml +30 -0
  40. data/spec/fixtures/items_2.1/data-attributes.xml +61 -0
  41. data/spec/fixtures/items_2.1/drawing.xml +16 -0
  42. data/spec/fixtures/items_2.1/essay.xml +14 -0
  43. data/spec/fixtures/items_2.1/extended_text.xml +24 -0
  44. data/spec/fixtures/items_2.1/extended_text_rubric.xml +36 -0
  45. data/spec/fixtures/items_2.1/feedback_adaptive.xml +142 -0
  46. data/spec/fixtures/items_2.1/figures.xml +32 -0
  47. data/spec/fixtures/items_2.1/gap_match.xml +33 -0
  48. data/spec/fixtures/items_2.1/graphic_associate.xml +36 -0
  49. data/spec/fixtures/items_2.1/graphic_gap_match.xml +54 -0
  50. data/spec/fixtures/items_2.1/graphic_gap_match_text.xml +50 -0
  51. data/spec/fixtures/items_2.1/graphic_order.xml +32 -0
  52. data/spec/fixtures/items_2.1/hint.xml +85 -0
  53. data/spec/fixtures/items_2.1/hotspot.xml +26 -0
  54. data/spec/fixtures/items_2.1/hottext.xml +33 -0
  55. data/spec/fixtures/items_2.1/images/CBG.png +0 -0
  56. data/spec/fixtures/items_2.1/images/EBG.png +0 -0
  57. data/spec/fixtures/items_2.1/images/EDI.png +0 -0
  58. data/spec/fixtures/items_2.1/images/GLA.png +0 -0
  59. data/spec/fixtures/items_2.1/images/MAN.png +0 -0
  60. data/spec/fixtures/items_2.1/images/MCH.png +0 -0
  61. data/spec/fixtures/items_2.1/images/airport.png +0 -0
  62. data/spec/fixtures/items_2.1/images/blueStar.png +0 -0
  63. data/spec/fixtures/items_2.1/images/blue_door.png +0 -0
  64. data/spec/fixtures/items_2.1/images/bus.png +0 -0
  65. data/spec/fixtures/items_2.1/images/castle.png +0 -0
  66. data/spec/fixtures/items_2.1/images/greenTriangle.png +0 -0
  67. data/spec/fixtures/items_2.1/images/green_door.png +0 -0
  68. data/spec/fixtures/items_2.1/images/house.png +0 -0
  69. data/spec/fixtures/items_2.1/images/open_car.png +0 -0
  70. data/spec/fixtures/items_2.1/images/open_goat.png +0 -0
  71. data/spec/fixtures/items_2.1/images/plane.png +0 -0
  72. data/spec/fixtures/items_2.1/images/postcard.eps +3581 -0
  73. data/spec/fixtures/items_2.1/images/postcard.png +0 -0
  74. data/spec/fixtures/items_2.1/images/rectangle.svg +1 -0
  75. data/spec/fixtures/items_2.1/images/redCircle.png +0 -0
  76. data/spec/fixtures/items_2.1/images/red_door.png +0 -0
  77. data/spec/fixtures/items_2.1/images/sign.png +0 -0
  78. data/spec/fixtures/items_2.1/images/survey.jpg +0 -0
  79. data/spec/fixtures/items_2.1/images/train.png +0 -0
  80. data/spec/fixtures/items_2.1/images/uk.png +0 -0
  81. data/spec/fixtures/items_2.1/images/ukair.png +0 -0
  82. data/spec/fixtures/items_2.1/images/ukairtags.png +0 -0
  83. data/spec/fixtures/items_2.1/imsmanifest.xml +227 -0
  84. data/spec/fixtures/items_2.1/inline_choice.xml +26 -0
  85. data/spec/fixtures/items_2.1/inline_choice_math.xml +68 -0
  86. data/spec/fixtures/items_2.1/likert.xml +21 -0
  87. data/spec/fixtures/items_2.1/match.xml +41 -0
  88. data/spec/fixtures/items_2.1/math.xml +35 -0
  89. data/spec/fixtures/items_2.1/mc_calc3.xml +164 -0
  90. data/spec/fixtures/items_2.1/mc_calc5.xml +211 -0
  91. data/spec/fixtures/items_2.1/mc_stat2.xml +219 -0
  92. data/spec/fixtures/items_2.1/media_coords.xml +33 -0
  93. data/spec/fixtures/items_2.1/multi-input.xml +271 -0
  94. data/spec/fixtures/items_2.1/nested_object.xml +26 -0
  95. data/spec/fixtures/items_2.1/order.xml +25 -0
  96. data/spec/fixtures/items_2.1/order_partial_scoring.xml +55 -0
  97. data/spec/fixtures/items_2.1/order_rtl.xml +27 -0
  98. data/spec/fixtures/items_2.1/orkney1.xml +34 -0
  99. data/spec/fixtures/items_2.1/orkney2.xml +34 -0
  100. data/spec/fixtures/items_2.1/position_object.xml +34 -0
  101. data/spec/fixtures/items_2.1/select_point.xml +23 -0
  102. data/spec/fixtures/items_2.1/shared/orkney.css +1 -0
  103. data/spec/fixtures/items_2.1/shared/orkney.html +20 -0
  104. data/spec/fixtures/items_2.1/slider.xml +35 -0
  105. data/spec/fixtures/items_2.1/svg.xml +28 -0
  106. data/spec/fixtures/items_2.1/template.xml +88 -0
  107. data/spec/fixtures/items_2.1/template_image.xml +74 -0
  108. data/spec/fixtures/items_2.1/text_entry.xml +27 -0
  109. data/spec/fixtures/items_2.1/upload.xml +18 -0
  110. data/spec/fixtures/items_2.1/upload_composite.xml +24 -0
  111. data/spec/fixtures/test_qti_1.2.zip +0 -0
  112. data/spec/fixtures/test_qti_1.2/contact info.png +0 -0
  113. data/spec/fixtures/test_qti_1.2/exam1/my_files/org0/images/image.png +0 -0
  114. data/spec/fixtures/test_qti_1.2/exam1/my_files/org1/images/image.png +0 -0
  115. data/spec/fixtures/test_qti_1.2/image.png +0 -0
  116. data/spec/fixtures/test_qti_1.2/imsmanifest.xml +37 -0
  117. data/spec/fixtures/test_qti_1.2/quiz.xml +216 -0
  118. data/spec/fixtures/test_qti_2.1.zip +0 -0
  119. data/spec/fixtures/test_qti_2.1/assessment.xml +77 -0
  120. data/spec/fixtures/test_qti_2.1/imsmanifest.xml +211 -0
  121. data/spec/fixtures/test_qti_2.1/mathassess.xsd +54 -0
  122. data/spec/fixtures/test_qti_2.1/multiple-answer/multiple-answer.xml +31 -0
  123. data/spec/fixtures/test_qti_2.1/multiple-choice/multiple-choice.xml +31 -0
  124. data/spec/fixtures/test_qti_2.1/text-entry/text-entry.xml +330 -0
  125. data/spec/fixtures/test_qti_2.1/true-false/true-false.xml +55 -0
  126. data/spec/fixtures/tests/feedbackTest/assessment.xml +252 -0
  127. data/spec/fixtures/tests/feedbackTest/id-38d47747fb30/Example02-feedbackInline.xml +51 -0
  128. data/spec/fixtures/tests/feedbackTest/id-5e216df10030/Example03-feedbackBlock-solution.xml +199 -0
  129. data/spec/fixtures/tests/feedbackTest/id-9c33d141576e/Example05-feedbackBlock-adaptive.xml +330 -0
  130. data/spec/fixtures/tests/feedbackTest/id-aaa0bbf5da1d/Example03-feedbackBlock-solution-random.xml +223 -0
  131. data/spec/fixtures/tests/feedbackTest/id-d599169403d2/Example04-feedbackBlock-templateBlock.xml +534 -0
  132. data/spec/fixtures/tests/feedbackTest/id-fa3ee5852723/Example01-modalFeedback.xml +55 -0
  133. data/spec/fixtures/tests/feedbackTest/imsmanifest.xml +239 -0
  134. data/spec/fixtures/tests/interactionmix_saxony_v3/Choicemultiple_2014410822.xml +110 -0
  135. data/spec/fixtures/tests/interactionmix_saxony_v3/Choicemultiple_871212949.xml +208 -0
  136. data/spec/fixtures/tests/interactionmix_saxony_v3/Choicesingle_853928446.xml +159 -0
  137. data/spec/fixtures/tests/interactionmix_saxony_v3/Choicetruefalse_176040516.xml +98 -0
  138. data/spec/fixtures/tests/interactionmix_saxony_v3/Hotspot_278940407.xml +109 -0
  139. data/spec/fixtures/tests/interactionmix_saxony_v3/Hottext_801974120.xml +106 -0
  140. data/spec/fixtures/tests/interactionmix_saxony_v3/InteractionMixSachsen_1901710679.xml +54 -0
  141. data/spec/fixtures/tests/interactionmix_saxony_v3/Matchmultiple_1038910213.xml +139 -0
  142. data/spec/fixtures/tests/interactionmix_saxony_v3/Matchsingle_143114773.xml +133 -0
  143. data/spec/fixtures/tests/interactionmix_saxony_v3/Order_913967682.xml +117 -0
  144. data/spec/fixtures/tests/interactionmix_saxony_v3/TextEntry_883368511.xml +114 -0
  145. data/spec/fixtures/tests/interactionmix_saxony_v3/TextEntrynumeric_2040297025.xml +154 -0
  146. data/spec/fixtures/tests/interactionmix_saxony_v3/TextEntrynumeric_770468849.xml +124 -0
  147. data/spec/fixtures/tests/interactionmix_saxony_v3/TextEntrysubset_806481421.xml +227 -0
  148. data/spec/fixtures/tests/interactionmix_saxony_v3/imsmanifest.xml +278 -0
  149. data/spec/fixtures/tests/interactionmix_saxony_v3/media/03c5e2f774db49598deb3ac7d05b53f9.jpg +0 -0
  150. data/spec/fixtures/tests/interactionmix_saxony_v3/media/0563e67fb1bb48ad882e0a5abf2a2686.jpg +0 -0
  151. data/spec/fixtures/tests/interactionmix_saxony_v3/media/2f44366716474a5d8e2a2e32346cbc05.jpg +0 -0
  152. data/spec/fixtures/tests/interactionmix_saxony_v3/media/71a299b50b5e4b1492f8ee51ce25be7d.jpg +0 -0
  153. data/spec/fixtures/tests/interactionmix_saxony_v3/media/a439b702d5034ca38f6df26a12835db3.jpg +0 -0
  154. data/spec/fixtures/tests/interactionmix_saxony_v3/media/b660fc9f268c4ef688d8606116c70160.jpg +0 -0
  155. data/spec/fixtures/tests/interactionmix_saxony_v3/media/c2f541343b9b4bfdba9fc90c7a18403e.jpg +0 -0
  156. data/spec/fixtures/tests/interactionmix_saxony_v3/media/e18b5a2eb8104d0994a182ee0176a05c.jpg +0 -0
  157. data/spec/fixtures/tests/interactionmix_saxony_v3/media/f88c5aa2c6724a388fdbadc7133eb757.jpg +0 -0
  158. data/spec/fixtures/tests/interactionmix_saxony_v3/media/ffe337505ef74334a0cecb33310f99c1.jpg +0 -0
  159. data/spec/fixtures/tests/tests/complete.xml +33 -0
  160. data/spec/fixtures/tests/tests/report.xml +70 -0
  161. data/spec/fixtures/tests/tests/rtest01-fragment.xml +12 -0
  162. data/spec/fixtures/tests/tests/rtest01-set01.xml +17 -0
  163. data/spec/fixtures/tests/tests/rtest01-set02.xml +17 -0
  164. data/spec/fixtures/tests/tests/rtest01-set03.xml +17 -0
  165. data/spec/fixtures/tests/tests/rtest01.xml +16 -0
  166. data/spec/fixtures/tests/tests/rtest02.xml +48 -0
  167. data/spec/fixtures/tests/tests/rtest03.xml +38 -0
  168. data/spec/fixtures/tests/tests/rtest04.xml +50 -0
  169. data/spec/fixtures/tests/tests/rtest06.xml +34 -0
  170. data/spec/fixtures/tests/tests/rtest08.xml +38 -0
  171. data/spec/fixtures/tests/tests/rtest09.xml +33 -0
  172. data/spec/fixtures/tests/tests/rtest10.xml +48 -0
  173. data/spec/fixtures/tests/tests/rtest12.xml +38 -0
  174. data/spec/fixtures/tests/tests/rtest13.xml +62 -0
  175. data/spec/fixtures/tests/tests/rtest22.xml +41 -0
  176. data/spec/fixtures/tests/tests/rtest24.xml +37 -0
  177. data/spec/fixtures/tests/tests/rtest25.xml +62 -0
  178. data/spec/fixtures/tests/tests/rtest26.xml +38 -0
  179. data/spec/fixtures/tests/tests/rtest27.xml +46 -0
  180. data/spec/qti/models/base_spec.rb +71 -0
  181. data/spec/qti/models/manifest_spec.rb +19 -0
  182. data/spec/qti/v1/models/assessment_item_spec.rb +49 -0
  183. data/spec/qti/v1/models/assessment_spec.rb +18 -0
  184. data/spec/qti/v1/models/choices/logical_identifier_choice_spec.rb +23 -0
  185. data/spec/qti/v1/models/interactions/logical_identifier_interaction_spec.rb +20 -0
  186. data/spec/qti/v2/models/assessment_item_spec.rb +67 -0
  187. data/spec/qti/v2/models/assessment_test_spec.rb +60 -0
  188. data/spec/qti/v2/models/choices/simple_choice_spec.rb +22 -0
  189. data/spec/qti/v2/models/interactions/choice_interaction_spec.rb +27 -0
  190. data/spec/qti_spec.rb +38 -0
  191. data/spec/spec_helper.rb +10 -0
  192. metadata +506 -0
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="choice_aria" title="Surveyors" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
7
+ <correctResponse>
8
+ <value>ChoiceA</value>
9
+ </correctResponse>
10
+ </responseDeclaration>
11
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
12
+ <defaultValue>
13
+ <value>0</value>
14
+ </defaultValue>
15
+ </outcomeDeclaration>
16
+ <itemBody>
17
+ <p>Examine the following survey map.</p>
18
+ <p>
19
+ <img src="images/survey.jpg" alt="Survey map with angles" aria-describedBy="imgdesc1"/>
20
+ </p>
21
+ <div id="imgdesc1">Two surveyors, A and P, stand some distance apart on the south bank of a river, looking at a tree, T, that is on the north bank of the river. Points A, P, and T form a triangle. At points A and P, there are two parallel sight lines pointing north and forming angles outside of the triangle. At point P, angle <span aria-label="T P A">TPA</span> is 53 degrees. The adjacent angle between PT and the northern sight line is 37 degrees. At point A, angle TAP is not labeled, and the adjacent angle formed between AT and that northern sight line is 32 degrees.</div>
22
+ <div role="note">
23
+ <table role="presentation">
24
+ <tbody>
25
+ <tr>
26
+ <td>The angles of a triangle add up to 180 degrees. <span role="math">a+b+c=180</span></td>
27
+ <td>Knowing any two angles, you can calculate the missing angle.</td>
28
+ </tr>
29
+ </tbody>
30
+ </table>
31
+ </div>
32
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="1">
33
+ <prompt>What is the value of angle <span aria-label="T A P">TAP</span> in degrees?</prompt>
34
+ <simpleChoice identifier="ChoiceA">90</simpleChoice>
35
+ <simpleChoice identifier="ChoiceB">37</simpleChoice>
36
+ <simpleChoice identifier="ChoiceC">58</simpleChoice>
37
+ <simpleChoice identifier="ChoiceD" fixed="true">None of the above.</simpleChoice>
38
+ </choiceInteraction>
39
+ </itemBody>
40
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
41
+ </assessmentItem>
42
+
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <!-- The example combines shuffle with the fixation of one simpleChoice in place -->
4
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
5
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
7
+ identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false">
8
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
9
+ <correctResponse>
10
+ <value>ChoiceA</value>
11
+ </correctResponse>
12
+ </responseDeclaration>
13
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
14
+ <defaultValue>
15
+ <value>0</value>
16
+ </defaultValue>
17
+ </outcomeDeclaration>
18
+ <itemBody>
19
+ <p>Look at the text in the picture.</p>
20
+ <p>
21
+ <img src="images/sign.png" alt="NEVER LEAVE LUGGAGE UNATTENDED"/>
22
+ </p>
23
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="1">
24
+ <prompt>What does it say?</prompt>
25
+ <simpleChoice identifier="ChoiceA">You must stay with your luggage at all times.</simpleChoice>
26
+ <simpleChoice identifier="ChoiceB">Do not let someone else look after your luggage.</simpleChoice>
27
+ <simpleChoice identifier="ChoiceC">Remember your luggage when you leave.</simpleChoice>
28
+ <simpleChoice identifier="ChoiceD" fixed="true">None of the above.</simpleChoice>
29
+ </choiceInteraction>
30
+ </itemBody>
31
+ <responseProcessing
32
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
33
+ </assessmentItem>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="choiceMultiple" title="Composition of Water" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="identifier">
7
+ <correctResponse>
8
+ <value>H</value>
9
+ <value>O</value>
10
+ </correctResponse>
11
+ <mapping lowerBound="0" upperBound="2" defaultValue="-2">
12
+ <mapEntry mapKey="H" mappedValue="1"/>
13
+ <mapEntry mapKey="O" mappedValue="1"/>
14
+ <mapEntry mapKey="Cl" mappedValue="-1"/>
15
+ </mapping>
16
+ </responseDeclaration>
17
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
18
+ <itemBody>
19
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0">
20
+ <prompt>Which of the following elements are used to form water?</prompt>
21
+ <simpleChoice identifier="H" fixed="false">Hydrogen</simpleChoice>
22
+ <simpleChoice identifier="He" fixed="false">Helium</simpleChoice>
23
+ <simpleChoice identifier="C" fixed="false">Carbon</simpleChoice>
24
+ <simpleChoice identifier="O" fixed="false">Oxygen</simpleChoice>
25
+ <simpleChoice identifier="N" fixed="false">Nitrogen</simpleChoice>
26
+ <simpleChoice identifier="Cl" fixed="false">Chlorine</simpleChoice>
27
+ </choiceInteraction>
28
+ </itemBody>
29
+ <responseProcessing
30
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/map_response"/>
31
+ </assessmentItem>
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="choiceMultiple" title="Chocolate Milk" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="MR01" cardinality="multiple" baseType="identifier"/>
7
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
8
+ <itemBody>
9
+ <choiceInteraction responseIdentifier="MR01" shuffle="true" maxChoices="10">
10
+ <prompt>How to make chocolate milk. Select the combination of steps that lead to a nice
11
+ glass of hot and steamy chocolate milk.</prompt>
12
+ <simpleChoice identifier="C01" fixed="false">Take a lighter</simpleChoice>
13
+ <simpleChoice identifier="C02" fixed="false">Open the gas on the stove</simpleChoice>
14
+ <simpleChoice identifier="C03" fixed="false">Light the gas</simpleChoice>
15
+ <simpleChoice identifier="C04" fixed="false">Poor the milk in the pan</simpleChoice>
16
+ <simpleChoice identifier="C05" fixed="false">Add 2 tea spoons of cocoa into the mug</simpleChoice>
17
+ <simpleChoice identifier="C06" fixed="false">Add 2 tea spoons of sugar into the mug</simpleChoice>
18
+ <simpleChoice identifier="C07" fixed="false">Add 2 spoons of water into the mug</simpleChoice>
19
+ <simpleChoice identifier="C08" fixed="false">Stir the water, cocoa and sugar until the
20
+ mixture is smooth</simpleChoice>
21
+ <simpleChoice identifier="C09" fixed="false">Put the pan with milk on the stove</simpleChoice>
22
+ <simpleChoice identifier="C10" fixed="false">Poor the boiling milk into the mug</simpleChoice>
23
+ <simpleChoice identifier="C11" fixed="false">Put the mug with the mixture and milk into
24
+ the microwave</simpleChoice>
25
+ <simpleChoice identifier="C12" fixed="false">Add milk to the mug with the smooth mixture</simpleChoice>
26
+ <simpleChoice identifier="C13" fixed="false">Add cold milk from the fridge into the mug
27
+ with smooth mixture</simpleChoice>
28
+ <simpleChoice identifier="C14" fixed="false">Set the microwave on 700 Watt and set the
29
+ timer to 2 minutes</simpleChoice>
30
+ </choiceInteraction>
31
+ </itemBody>
32
+ <responseProcessing>
33
+ <responseCondition>
34
+ <responseIf>
35
+ <match>
36
+ <variable identifier="MR01"/>
37
+ <multiple>
38
+ <baseValue baseType="identifier">C01</baseValue>
39
+ <baseValue baseType="identifier">C02</baseValue>
40
+ <baseValue baseType="identifier">C03</baseValue>
41
+ <baseValue baseType="identifier">C04</baseValue>
42
+ <baseValue baseType="identifier">C05</baseValue>
43
+ <baseValue baseType="identifier">C06</baseValue>
44
+ <baseValue baseType="identifier">C07</baseValue>
45
+ <baseValue baseType="identifier">C08</baseValue>
46
+ <baseValue baseType="identifier">C09</baseValue>
47
+ <baseValue baseType="identifier">C10</baseValue>
48
+ </multiple>
49
+ </match>
50
+ <setOutcomeValue identifier="SCORE">
51
+ <baseValue baseType="float">1</baseValue>
52
+ </setOutcomeValue>
53
+ </responseIf>
54
+ <responseElseIf>
55
+ <match>
56
+ <variable identifier="MR01"/>
57
+ <multiple>
58
+ <baseValue baseType="identifier">C11</baseValue>
59
+ <baseValue baseType="identifier">C05</baseValue>
60
+ <baseValue baseType="identifier">C06</baseValue>
61
+ <baseValue baseType="identifier">C07</baseValue>
62
+ <baseValue baseType="identifier">C08</baseValue>
63
+ <baseValue baseType="identifier">C12</baseValue>
64
+ <baseValue baseType="identifier">C13</baseValue>
65
+ <baseValue baseType="identifier">C14</baseValue>
66
+ </multiple>
67
+ </match>
68
+ <setOutcomeValue identifier="SCORE">
69
+ <baseValue baseType="float">1</baseValue>
70
+ </setOutcomeValue>
71
+ </responseElseIf>
72
+ </responseCondition>
73
+ </responseProcessing>
74
+ </assessmentItem>
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="choiceMultiple" title="Composition of Water" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="identifier">
7
+ <correctResponse>
8
+ <value>H</value>
9
+ <value>O</value>
10
+ </correctResponse>
11
+ <mapping lowerBound="0" upperBound="2" defaultValue="-2">
12
+ <mapEntry mapKey="H" mappedValue="1"/>
13
+ <mapEntry mapKey="O" mappedValue="1"/>
14
+ <mapEntry mapKey="Cl" mappedValue="-1"/>
15
+ </mapping>
16
+ </responseDeclaration>
17
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
18
+ <itemBody>
19
+ <div dir="rtl">
20
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0">
21
+ <prompt>איזה מהגורמים הבאים משמשים ליצירת מים</prompt>
22
+ <simpleChoice identifier="H" fixed="false">מימן</simpleChoice>
23
+ <simpleChoice identifier="He" fixed="false">הליום</simpleChoice>
24
+ <simpleChoice identifier="C" fixed="false">פחם</simpleChoice>
25
+ <simpleChoice identifier="O" fixed="false">חמצן</simpleChoice>
26
+ <simpleChoice identifier="N" fixed="false">חנקן</simpleChoice>
27
+ <simpleChoice identifier="Cl" fixed="false">כלור</simpleChoice>
28
+ </choiceInteraction>
29
+ </div>
30
+ </itemBody>
31
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/map_response"/>
32
+ </assessmentItem>
33
+
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <!-- The example combines shuffle with the fixation of one simpleChoice in place -->
4
+ <!-- Ruby markup is defined in NS hq5 (HTML5 for QTI), which is referenced in the main QTI 2.2 XSD -->
5
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xmlns:hq5="http://www.imsglobal.org/xsd/imsqtiv2p2_html5_v1p0"
8
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
9
+ identifier="choice" title="出身地" adaptive="false" timeDependent="false">
10
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
11
+ <correctResponse>
12
+ <value>ChoiceHK</value>
13
+ </correctResponse>
14
+ </responseDeclaration>
15
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer">
16
+ <defaultValue>
17
+ <value>0</value>
18
+ </defaultValue>
19
+ </outcomeDeclaration>
20
+ <itemBody>
21
+ <p>村田<hq5:ruby><hq5:rb>真</hq5:rb><hq5:rt>まこと</hq5:rt></hq5:ruby>の出身地はどこですか</p>
22
+
23
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="1">
24
+ <prompt>選びなさい</prompt>
25
+ <simpleChoice identifier="ChoiceHK"><hq5:ruby><hq5:rb>北海道</hq5:rb><hq5:rt>ほっかいどう</hq5:rt></hq5:ruby></simpleChoice>
26
+ <simpleChoice identifier="ChoiceTH">東北</simpleChoice>
27
+ <simpleChoice identifier="ChoiceHR">北陸</simpleChoice>
28
+ <simpleChoice identifier="ChoiceKT">関東</simpleChoice>
29
+ <simpleChoice identifier="ChoiceKST">甲信越</simpleChoice>
30
+ <simpleChoice identifier="ChoiceKK">近畿</simpleChoice>
31
+ <simpleChoice identifier="ChoiceKS">関西</simpleChoice>
32
+ <simpleChoice identifier="ChoiceSK">四国</simpleChoice>
33
+ <simpleChoice identifier="ChoiceTC">中国</simpleChoice>
34
+ <simpleChoice identifier="ChoiceKY">九州</simpleChoice>
35
+ </choiceInteraction>
36
+ </itemBody>
37
+ <responseProcessing
38
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
39
+ </assessmentItem>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
6
+ identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
8
+ <correctResponse>
9
+ <value>F</value>
10
+ </correctResponse>
11
+ </responseDeclaration>
12
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
13
+ <defaultValue>
14
+ <value>0</value>
15
+ </defaultValue>
16
+ </outcomeDeclaration>
17
+ <itemBody>
18
+ <p>Look at the text in the picture.</p>
19
+ <p>
20
+ <img src="images/sign.png" alt="NEVER LEAVE LUGGAGE UNATTENDED"/>
21
+ </p>
22
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
23
+ <prompt>Is it red?</prompt>
24
+ <simpleChoice identifier="T">True </simpleChoice>
25
+ <simpleChoice identifier="F">False </simpleChoice>
26
+ </choiceInteraction>
27
+ </itemBody>
28
+ <responseProcessing
29
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
30
+ </assessmentItem>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
6
+ identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
8
+ <correctResponse>
9
+ <value>true</value>
10
+ </correctResponse>
11
+ </responseDeclaration>
12
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
13
+ <defaultValue>
14
+ <value>0</value>
15
+ </defaultValue>
16
+ </outcomeDeclaration>
17
+ <itemBody>
18
+ <p>Look at the text in the picture.</p>
19
+ <p>
20
+ <img src="images/sign.png" alt="NEVER LEAVE LUGGAGE UNATTENDED"/>
21
+ </p>
22
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
23
+ <prompt>Is it blue?</prompt>
24
+ <simpleChoice identifier="true">True </simpleChoice>
25
+ <simpleChoice identifier="false">False </simpleChoice>
26
+ </choiceInteraction>
27
+ </itemBody>
28
+ <responseProcessing
29
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
30
+ </assessmentItem>
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="gapMatch" title="Charting Data" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="directedPair">
7
+ <correctResponse>
8
+ <value>C1 circle</value>
9
+ <value>C1 circle</value>
10
+ <value>C1 circle</value>
11
+ <value>C2 triangle</value>
12
+ <value>C2 triangle</value>
13
+ <value>C3 star</value>
14
+ <value>C3 star</value>
15
+ <value>C3 star</value>
16
+ <value>C3 star</value>
17
+ </correctResponse>
18
+ </responseDeclaration>
19
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
20
+ <itemBody>
21
+ <gapMatchInteraction responseIdentifier="RESPONSE" shuffle="false">
22
+ <prompt>Jaiden and his friends made a chart of their favorite shapes. There were 3 circles, 2
23
+ triangles and 4 stars. Click the shapes to complete the chart below.</prompt>
24
+ <gapText identifier="circle" matchMax="5" data-type="clickPop" data-target-container="C1">
25
+ <img src="redCircle.png" width="75" height="75" alt=""/>
26
+ </gapText>
27
+ <gapText identifier="triangle" matchMax="5" data-type="clickPop" data-target-container="C2">
28
+ <img src="greenTriangle.png" width="75" height="75" alt=""/>
29
+ </gapText>
30
+ <gapText identifier="star" matchMax="5" data-type="clickPop" data-target-container="C3">
31
+ <img src="blueStar.png" width="75" height="75" alt=""/>
32
+ </gapText>
33
+ <blockquote>
34
+ <table class="chart">
35
+ <tbody>
36
+ <tr>
37
+ <th>Circles</th>
38
+ <td><p>
39
+ <gap identifier="C1" data-type="gridContainer" data-centerpoint="left" matchGroup="max-5 min-0"/>
40
+ </p></td>
41
+ </tr>
42
+ <tr>
43
+ <th>Triangles</th>
44
+ <td><p>
45
+ <gap identifier="C2" data-type="gridContainer" data-centerpoint="left" matchGroup="max-5 min-0"/>
46
+ </p></td>
47
+ </tr>
48
+ <tr>
49
+ <th>Stars</th>
50
+ <td><p>
51
+ <gap identifier="C3" data-type="gridContainer" data-centerpoint="left" matchGroup="max-5 min-0"/>
52
+ </p></td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ </blockquote>
57
+ </gapMatchInteraction>
58
+ </itemBody>
59
+ <responseProcessing
60
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
61
+ </assessmentItem>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="drawing" title="La casa di Giovanni" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="file"/>
7
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
8
+ <itemBody>
9
+ <p>Read the following description of Giovanni's house and then colour the picture
10
+ accordingly.</p>
11
+ <drawingInteraction responseIdentifier="RESPONSE">
12
+ <prompt>Il tetto &#232; rosso e i muri sono gialli.</prompt>
13
+ <object type="image/png" data="images/house.png" width="144" height="260"/>
14
+ </drawingInteraction>
15
+ </itemBody>
16
+ </assessmentItem>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
5
+ identifier="essay" title="Write an essay" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="string"/>
7
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" externalScored="human"/>
8
+ <itemBody>
9
+ <p>In the class room, we discovered Martin Luther King Jr. and his devotion.</p>
10
+ <extendedTextInteraction responseIdentifier="RESPONSE">
11
+ <prompt><b>Write an abstract about the life of this historical figure.</b></prompt>
12
+ </extendedTextInteraction>
13
+ </itemBody>
14
+ </assessmentItem>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
6
+ identifier="extendedText" title="Writing a Postcard" adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="string"/>
8
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
9
+ <itemBody>
10
+ <p>Read this postcard from your English pen-friend, Sam.</p>
11
+ <div>
12
+ <object type="image/png" data="images/postcard.png">
13
+ <blockquote class="postcard">
14
+ <p>Here is a postcard of my town. Please send me<br/> a postcard from your town.
15
+ What size is your<br/> town? What is the nicest part of your town?<br/>
16
+ Where do you go in the evenings?<br/> Sam.</p>
17
+ </blockquote>
18
+ </object>
19
+ </div>
20
+ <extendedTextInteraction responseIdentifier="RESPONSE" expectedLength="200">
21
+ <prompt>Write Sam a postcard. Answer the questions. Write 25-35 words.</prompt>
22
+ </extendedTextInteraction>
23
+ </itemBody>
24
+ </assessmentItem>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
3
+ <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2.xsd"
6
+ identifier="extendedText" title="Writing a Postcard with rubric" adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="string"/>
8
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
9
+ <itemBody>
10
+ <p>Read this postcard from your English pen-friend, Sam.</p>
11
+ <div>
12
+ <object type="image/png" data="images/postcard.png">
13
+ <blockquote class="postcard">
14
+ <p>Here is a postcard of my town. Please send me<br/> a postcard from your town.
15
+ What size is your<br/> town? What is the nicest part of your town?<br/>
16
+ Where do you go in the evenings?<br/> Sam.</p>
17
+ </blockquote>
18
+ </object>
19
+ </div>
20
+ <extendedTextInteraction responseIdentifier="RESPONSE" expectedLength="200">
21
+ <prompt>Write Sam a postcard. Answer the questions. Write 25-35 words.</prompt>
22
+ </extendedTextInteraction>
23
+ <rubricBlock view="scorer">
24
+ <h1>Scoring Guidelines</h1>
25
+ <div>
26
+ <p><b>Max Score:</b> 3.0 points</p>
27
+ <p><b>Scoring:</b></p>
28
+ <ul>
29
+ <li>When not all 3 questions are answered in the response: -1 for each missing.</li>
30
+ <li>Check for gramatical errors: -0.1 per error.</li>
31
+ <li>Possibly add in .1 increments extra bonus points for extra good answers.</li>
32
+ </ul>
33
+ </div>
34
+ </rubricBlock>
35
+ </itemBody>
36
+ </assessmentItem>