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,271 @@
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
+ xmlns:xi="http://www.w3.org/2001/XInclude"
6
+ xmlns:m="http://www.w3.org/1998/Math/MathML" toolName="Mathqurate" toolVersion="1.0" xml:lang="en"
7
+ identifier="multi-input" title="Legend" adaptive="false" timeDependent="false">
8
+ <responseDeclaration identifier="RESPONSE1" cardinality="single" baseType="identifier">
9
+ <correctResponse>
10
+ <value>ChoiceA</value>
11
+ </correctResponse>
12
+ </responseDeclaration>
13
+ <responseDeclaration identifier="RESPONSE2" cardinality="single" baseType="identifier">
14
+ <correctResponse>
15
+ <value>A2</value>
16
+ </correctResponse>
17
+ </responseDeclaration>
18
+ <responseDeclaration identifier="RESPONSE3" cardinality="single" baseType="string">
19
+ <correctResponse>
20
+ <value>wicked king</value>
21
+ </correctResponse>
22
+ </responseDeclaration>
23
+ <responseDeclaration identifier="RESPONSE4" cardinality="multiple" baseType="directedPair">
24
+ <correctResponse>
25
+ <value>F G1</value>
26
+ <value>C G2</value>
27
+ <value>H G3</value>
28
+ </correctResponse>
29
+ </responseDeclaration>
30
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
31
+ <defaultValue>
32
+ <value>0.0</value>
33
+ </defaultValue>
34
+ </outcomeDeclaration>
35
+ <outcomeDeclaration identifier="SCORE1" cardinality="single" baseType="float">
36
+ <defaultValue>
37
+ <value>0.0</value>
38
+ </defaultValue>
39
+ </outcomeDeclaration>
40
+ <outcomeDeclaration identifier="SCORE2" cardinality="single" baseType="float">
41
+ <defaultValue>
42
+ <value>0.0</value>
43
+ </defaultValue>
44
+ </outcomeDeclaration>
45
+ <outcomeDeclaration identifier="SCORE3" cardinality="single" baseType="float">
46
+ <defaultValue>
47
+ <value>0.0</value>
48
+ </defaultValue>
49
+ </outcomeDeclaration>
50
+ <outcomeDeclaration identifier="SCORE4" cardinality="single" baseType="float">
51
+ <defaultValue>
52
+ <value>0.0</value>
53
+ </defaultValue>
54
+ </outcomeDeclaration>
55
+ <outcomeDeclaration identifier="FEEDBACK" cardinality="multiple" baseType="identifier"/>
56
+
57
+ <itemBody>
58
+ <blockquote>
59
+ <p>Many people who live near the Theme Park are afraid to go into the Forest area. There is
60
+ a legend, that a woman named Marion, who once lived in the forest as an outlaw hundreds and hundreds
61
+ of years ago, still walks there as a ghost at night. The legend says, she was a great
62
+ warrior from a rich family, but the wicked king, who ruled the country, killed her
63
+ family, burned her castle and rode away on her horse. The castle is quite close to the Theme Park.</p>
64
+ </blockquote>
65
+ <choiceInteraction responseIdentifier="RESPONSE1" shuffle="true" maxChoices="1">
66
+ <prompt>Why are some people afraid of the Forest Area in the Theme Park?</prompt>
67
+ <simpleChoice identifier="ChoiceA">Some people are afraid of a woman who walks around at
68
+ night as a ghost.</simpleChoice>
69
+ <simpleChoice identifier="ChoiceB">Some people are afraid of the dark.</simpleChoice>
70
+ <simpleChoice identifier="ChoiceC">Some people are afraid of a man who walks around at
71
+ night as a ghost.</simpleChoice>
72
+ </choiceInteraction>
73
+ <p>
74
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="ReasonOK">Yes,
75
+ that's the right reason.</feedbackInline>
76
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show"
77
+ identifier="ReasonIncorrect">No, that's not the right reason.</feedbackInline>
78
+ </p>
79
+ <div>The woman, whose name was <inlineChoiceInteraction responseIdentifier="RESPONSE2"
80
+ shuffle="true">
81
+ <inlineChoice identifier="P2" fixed="true">Please choose...</inlineChoice>
82
+ <inlineChoice identifier="C2">Marine</inlineChoice>
83
+ <inlineChoice identifier="B2">Maureen</inlineChoice>
84
+ <inlineChoice identifier="A2">Marion</inlineChoice>
85
+ </inlineChoiceInteraction>, became angry with the <textEntryInteraction
86
+ responseIdentifier="RESPONSE3"/>.</div>
87
+ <gapMatchInteraction responseIdentifier="RESPONSE4" shuffle="true">
88
+ <gapText identifier="F" matchMax="1">family</gapText>
89
+ <gapText identifier="C" matchMax="1">castle</gapText>
90
+ <gapText identifier="S" matchMax="1">sword</gapText>
91
+ <gapText identifier="H" matchMax="1">horse</gapText>
92
+ <blockquote>
93
+ <p>He killed her <gap identifier="G1"/> and burned her <gap identifier="G2"/>, then jumped on her <gap identifier="G3"/> and rode away.</p>
94
+ </blockquote>
95
+ </gapMatchInteraction>
96
+ <p>
97
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="NameOK"> You've
98
+ got the right name for our heroine.</feedbackInline>
99
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="WrongName"> You've
100
+ got the wrong name for our heroine.</feedbackInline>
101
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="BaddyOK">
102
+ Right, he was a wicked king!</feedbackInline>
103
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="BaddyAlmost">
104
+ Not quite, he was a wicked king!</feedbackInline>
105
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="BaddyNo">
106
+ No, he was a wicked king!</feedbackInline>
107
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="BaddyBad">
108
+ No, it was the wicked king!</feedbackInline>
109
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="GapsOK">
110
+ Yes, that's what he did.</feedbackInline>
111
+ <feedbackInline outcomeIdentifier="FEEDBACK" showHide="show" identifier="GapsNo">
112
+ No, that's not what he did.</feedbackInline>
113
+ </p>
114
+ </itemBody>
115
+ <responseProcessing>
116
+ <responseCondition>
117
+ <responseIf>
118
+ <match>
119
+ <variable identifier="RESPONSE1"/>
120
+ <correct identifier="RESPONSE1"/>
121
+ </match>
122
+ <setOutcomeValue identifier="SCORE1">
123
+ <baseValue baseType="float">1.0</baseValue>
124
+ </setOutcomeValue>
125
+ <setOutcomeValue identifier="FEEDBACK">
126
+ <multiple>
127
+ <baseValue baseType="identifier">ReasonOK</baseValue>
128
+ </multiple>
129
+ </setOutcomeValue>
130
+ </responseIf>
131
+ <responseElse>
132
+ <setOutcomeValue identifier="SCORE1">
133
+ <baseValue baseType="float">0.0</baseValue>
134
+ </setOutcomeValue>
135
+ <setOutcomeValue identifier="FEEDBACK">
136
+ <multiple>
137
+ <baseValue baseType="identifier">ReasonIncorrect</baseValue>
138
+ </multiple>
139
+ </setOutcomeValue>
140
+ </responseElse>
141
+ </responseCondition>
142
+ <responseCondition>
143
+ <responseIf>
144
+ <match>
145
+ <variable identifier="RESPONSE2"/>
146
+ <correct identifier="RESPONSE2"/>
147
+ </match>
148
+ <setOutcomeValue identifier="SCORE2">
149
+ <baseValue baseType="float">1.0</baseValue>
150
+ </setOutcomeValue>
151
+ <setOutcomeValue identifier="FEEDBACK">
152
+ <multiple>
153
+ <variable identifier="FEEDBACK"/>
154
+ <baseValue baseType="identifier">NameOK</baseValue>
155
+ </multiple>
156
+ </setOutcomeValue>
157
+ </responseIf>
158
+ <responseElse>
159
+ <setOutcomeValue identifier="SCORE2">
160
+ <baseValue baseType="float">0.0</baseValue>
161
+ </setOutcomeValue>
162
+ <setOutcomeValue identifier="FEEDBACK">
163
+ <multiple>
164
+ <variable identifier="FEEDBACK"/>
165
+ <baseValue baseType="identifier">WrongName</baseValue>
166
+ </multiple>
167
+ </setOutcomeValue>
168
+ </responseElse>
169
+ </responseCondition>
170
+ <responseCondition>
171
+ <responseIf>
172
+ <match>
173
+ <variable identifier="RESPONSE3"/>
174
+ <correct identifier="RESPONSE3"/>
175
+ </match>
176
+ <setOutcomeValue identifier="SCORE3">
177
+ <baseValue baseType="float">1.0</baseValue>
178
+ </setOutcomeValue>
179
+ <setOutcomeValue identifier="FEEDBACK">
180
+ <multiple>
181
+ <variable identifier="FEEDBACK"/>
182
+ <baseValue baseType="identifier">BaddyOK</baseValue>
183
+ </multiple>
184
+ </setOutcomeValue>
185
+ </responseIf>
186
+ <responseElseIf>
187
+ <or>
188
+ <match>
189
+ <variable identifier="RESPONSE3"/>
190
+ <baseValue baseType="string">bad king</baseValue>
191
+ </match>
192
+ <match>
193
+ <variable identifier="RESPONSE3"/>
194
+ <baseValue baseType="string">evil king</baseValue>
195
+ </match>
196
+ </or>
197
+ <setOutcomeValue identifier="SCORE3">
198
+ <baseValue baseType="float">0.5</baseValue>
199
+ </setOutcomeValue>
200
+ <setOutcomeValue identifier="FEEDBACK">
201
+ <multiple>
202
+ <variable identifier="FEEDBACK"/>
203
+ <baseValue baseType="identifier">BaddyAlmost</baseValue>
204
+ </multiple>
205
+ </setOutcomeValue>
206
+ </responseElseIf>
207
+ <responseElseIf>
208
+ <substring caseSensitive="false">
209
+ <baseValue baseType="string">king</baseValue>
210
+ <variable identifier="RESPONSE3"/>
211
+ </substring>
212
+ <setOutcomeValue identifier="SCORE3">
213
+ <baseValue baseType="float">0.2</baseValue>
214
+ </setOutcomeValue>
215
+ <setOutcomeValue identifier="FEEDBACK">
216
+ <multiple>
217
+ <variable identifier="FEEDBACK"/>
218
+ <baseValue baseType="identifier">BaddyNo</baseValue>
219
+ </multiple>
220
+ </setOutcomeValue>
221
+ </responseElseIf>
222
+ <responseElse>
223
+ <setOutcomeValue identifier="SCORE3">
224
+ <baseValue baseType="float">0.0</baseValue>
225
+ </setOutcomeValue>
226
+ <setOutcomeValue identifier="FEEDBACK">
227
+ <multiple>
228
+ <variable identifier="FEEDBACK"/>
229
+ <baseValue baseType="identifier">BaddyBad</baseValue>
230
+ </multiple>
231
+ </setOutcomeValue>
232
+ </responseElse>
233
+ </responseCondition>
234
+ <responseCondition>
235
+ <responseIf>
236
+ <match>
237
+ <variable identifier="RESPONSE4"/>
238
+ <correct identifier="RESPONSE4"/>
239
+ </match>
240
+ <setOutcomeValue identifier="SCORE4">
241
+ <baseValue baseType="float">1.0</baseValue>
242
+ </setOutcomeValue>
243
+ <setOutcomeValue identifier="FEEDBACK">
244
+ <multiple>
245
+ <variable identifier="FEEDBACK"/>
246
+ <baseValue baseType="identifier">GapsOK</baseValue>
247
+ </multiple>
248
+ </setOutcomeValue>
249
+ </responseIf>
250
+ <responseElse>
251
+ <setOutcomeValue identifier="SCORE4">
252
+ <baseValue baseType="float">0.0</baseValue>
253
+ </setOutcomeValue>
254
+ <setOutcomeValue identifier="FEEDBACK">
255
+ <multiple>
256
+ <variable identifier="FEEDBACK"/>
257
+ <baseValue baseType="identifier">GapsNo</baseValue>
258
+ </multiple>
259
+ </setOutcomeValue>
260
+ </responseElse>
261
+ </responseCondition>
262
+ <setOutcomeValue identifier="SCORE">
263
+ <sum>
264
+ <variable identifier="SCORE1"/>
265
+ <variable identifier="SCORE2"/>
266
+ <variable identifier="SCORE3"/>
267
+ <variable identifier="SCORE4"/>
268
+ </sum>
269
+ </setOutcomeValue>
270
+ </responseProcessing>
271
+ </assessmentItem>
@@ -0,0 +1,26 @@
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="nestedObject" 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/eps" data="images/postcard.eps">
13
+ <object type="image/png" data="images/postcard.png">
14
+ <blockquote class="postcard">
15
+ <p>Here is a postcard of my town. Please send me<br/> a postcard from your
16
+ town. What size is your<br/> town? What is the nicest part of your
17
+ town?<br/> Where do you go in the evenings?<br/> Sam.</p>
18
+ </blockquote>
19
+ </object>
20
+ </object>
21
+ </div>
22
+ <extendedTextInteraction responseIdentifier="RESPONSE" expectedLength="200">
23
+ <prompt>Write Sam a postcard. Answer the questions. Write 25-35 words.</prompt>
24
+ </extendedTextInteraction>
25
+ </itemBody>
26
+ </assessmentItem>
@@ -0,0 +1,25 @@
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="order" title="Grand Prix of Bahrain" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="ordered" baseType="identifier">
7
+ <correctResponse>
8
+ <value>DriverC</value>
9
+ <value>DriverA</value>
10
+ <value>DriverB</value>
11
+ </correctResponse>
12
+ </responseDeclaration>
13
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
14
+ <itemBody>
15
+ <orderInteraction responseIdentifier="RESPONSE" shuffle="true">
16
+ <prompt>The following F1 drivers finished on the podium in the first ever Grand Prix of
17
+ Bahrain. Can you rearrange them into the correct finishing order?</prompt>
18
+ <simpleChoice identifier="DriverA">Rubens Barrichello</simpleChoice>
19
+ <simpleChoice identifier="DriverB">Jenson Button</simpleChoice>
20
+ <simpleChoice identifier="DriverC" fixed="true">Michael Schumacher</simpleChoice>
21
+ </orderInteraction>
22
+ </itemBody>
23
+ <responseProcessing
24
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
25
+ </assessmentItem>
@@ -0,0 +1,55 @@
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="orderPartialScoring" title="Grand Prix of Bahrain (Partial Scoring)"
6
+ adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="ordered" baseType="identifier">
8
+ <correctResponse>
9
+ <value>DriverC</value>
10
+ <value>DriverA</value>
11
+ <value>DriverB</value>
12
+ </correctResponse>
13
+ </responseDeclaration>
14
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
15
+ <itemBody>
16
+ <orderInteraction responseIdentifier="RESPONSE" shuffle="true">
17
+ <prompt>The following F1 drivers finished on the podium in the first ever Grand Prix of
18
+ Bahrain. Can you rearrange them into the correct finishing order?</prompt>
19
+ <simpleChoice identifier="DriverA">Rubens Barrichello</simpleChoice>
20
+ <simpleChoice identifier="DriverB">Jenson Button</simpleChoice>
21
+ <simpleChoice identifier="DriverC" fixed="true">Michael Schumacher</simpleChoice>
22
+ </orderInteraction>
23
+ </itemBody>
24
+ <responseProcessing>
25
+ <responseCondition>
26
+ <responseIf>
27
+ <match>
28
+ <variable identifier="RESPONSE"/>
29
+ <correct identifier="RESPONSE"/>
30
+ </match>
31
+ <setOutcomeValue identifier="SCORE">
32
+ <baseValue baseType="float">2</baseValue>
33
+ </setOutcomeValue>
34
+ </responseIf>
35
+ <responseElseIf>
36
+ <match>
37
+ <variable identifier="RESPONSE"/>
38
+ <ordered>
39
+ <baseValue baseType="identifier">DriverC</baseValue>
40
+ <baseValue baseType="identifier">DriverB</baseValue>
41
+ <baseValue baseType="identifier">DriverA</baseValue>
42
+ </ordered>
43
+ </match>
44
+ <setOutcomeValue identifier="SCORE">
45
+ <baseValue baseType="float">1</baseValue>
46
+ </setOutcomeValue>
47
+ </responseElseIf>
48
+ <responseElse>
49
+ <setOutcomeValue identifier="SCORE">
50
+ <baseValue baseType="float">0</baseValue>
51
+ </setOutcomeValue>
52
+ </responseElse>
53
+ </responseCondition>
54
+ </responseProcessing>
55
+ </assessmentItem>
@@ -0,0 +1,27 @@
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="order" title="Grand Prix של בחריין" adaptive="false" timeDependent="false">
6
+ <responseDeclaration identifier="RESPONSE" cardinality="ordered" baseType="identifier">
7
+ <correctResponse>
8
+ <value>DriverC</value>
9
+ <value>DriverA</value>
10
+ <value>DriverB</value>
11
+ </correctResponse>
12
+ </responseDeclaration>
13
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
14
+ <itemBody>
15
+ <div dir="rtl">
16
+ <orderInteraction responseIdentifier="RESPONSE" shuffle="true">
17
+ <prompt><bdo dir="ltr">F1</bdo> הנהגים הבאים סיימו על הפודיום בגרנד פרי בחריין הראשון אי פעם.אתה יכול לארגן אותם בסדר נכון הגמר?</prompt>
18
+ <simpleChoice identifier="DriverA"><bdo dir="ltr">Rubens Barrichello</bdo></simpleChoice>
19
+ <simpleChoice identifier="DriverB"><bdo dir="ltr">Jenson Button</bdo></simpleChoice>
20
+ <simpleChoice identifier="DriverC" fixed="true"><bdo dir="ltr">Michael Schumacher</bdo></simpleChoice>
21
+ </orderInteraction>
22
+ </div>
23
+ </itemBody>
24
+ <responseProcessing
25
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
26
+ </assessmentItem>
27
+
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This example has been 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="orkney1" title="Orkney 1" adaptive="false" timeDependent="false">
7
+ <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
8
+ <correctResponse>
9
+ <value>T</value>
10
+ </correctResponse>
11
+ </responseDeclaration>
12
+ <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
13
+ <defaultValue>
14
+ <value>0</value>
15
+ </defaultValue>
16
+ </outcomeDeclaration>
17
+ <stylesheet href="shared/orkney.css" type="text/css"/>
18
+ <itemBody>
19
+ <div class="rightpane">
20
+ <object data="shared/orkney.html" type="text/html"/>
21
+ </div>
22
+ <div class="leftpane">
23
+ <p>Read the text about the Orkney Islands and then decide if the following sentence is
24
+ correct or incorrect.</p>
25
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
26
+ <prompt>Some of the islands are home to animals rather than people.</prompt>
27
+ <simpleChoice identifier="T">Correct</simpleChoice>
28
+ <simpleChoice identifier="F">Incorrect</simpleChoice>
29
+ </choiceInteraction>
30
+ </div>
31
+ </itemBody>
32
+ <responseProcessing
33
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
34
+ </assessmentItem>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This example has been 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="orkney2" title="Orkney 2" 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
+ <stylesheet href="shared/orkney.css" type="text/css"/>
18
+ <itemBody>
19
+ <div class="rightpane">
20
+ <object data="shared/orkney.html" type="text/html"/>
21
+ </div>
22
+ <div class="leftpane">
23
+ <p>Read the text about the Orkney Islands and then decide if the following sentence is
24
+ correct or incorrect.</p>
25
+ <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
26
+ <prompt>You can fly direct from London Heathrow to Kirkwall.</prompt>
27
+ <simpleChoice identifier="T">Correct</simpleChoice>
28
+ <simpleChoice identifier="F">Incorrect</simpleChoice>
29
+ </choiceInteraction>
30
+ </div>
31
+ </itemBody>
32
+ <responseProcessing
33
+ template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
34
+ </assessmentItem>