qti 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qti/models/manifest.rb +9 -4
  3. data/spec/fixtures/test_qti_1.2.zip +0 -0
  4. data/spec/fixtures/test_qti_2.1.zip +0 -0
  5. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_01/qtiv2p1_EntryTest_VE_IP_01.xml +67 -0
  6. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_02/apip_VE_IP_02.css +38 -0
  7. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_02/apip_VE_IP_02.svg +28 -0
  8. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_02/qtiv2p1_EntryTest_VE_IP_02.xml +121 -0
  9. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_03/qtiv2p1_EntryTest_VE_IP_03.xml +129 -0
  10. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_04/qtiv2p1_EntryTest_VE_IP_04.xml +69 -0
  11. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_05/apip_VE_IP_05_croc.png +0 -0
  12. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_05/apip_VE_IP_05_flamingos.png +0 -0
  13. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_05/apip_VE_IP_05_title.png +0 -0
  14. data/spec/fixtures/test_qti_2.1/Items/Item_VE_IP_05/qtiv2p1_EntryTest_VE_IP_05.xml +139 -0
  15. data/spec/fixtures/test_qti_2.1/Tests/Test_VE_TP_06/qtiv2p1_EntryTest_VE_TP_06.xml +200 -0
  16. data/spec/fixtures/test_qti_2.1/imsmanifest.xml +263 -210
  17. data/spec/fixtures/test_qti_2.2.zip +0 -0
  18. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/assessment.xml +2 -0
  19. data/spec/fixtures/test_qti_2.2/essay/essay.xml +14 -0
  20. data/spec/fixtures/test_qti_2.2/images/sign.png +0 -0
  21. data/spec/fixtures/test_qti_2.2/imsmanifest.xml +161 -0
  22. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/mathassess.xsd +0 -0
  23. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/multiple-answer/multiple-answer.xml +0 -0
  24. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/multiple-choice/multiple-choice.xml +0 -0
  25. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/text-entry/text-entry.xml +0 -0
  26. data/spec/fixtures/{test_qti_2.1 → test_qti_2.2}/true-false/true-false.xml +0 -0
  27. data/spec/lib/qti/models/base_spec.rb +1 -1
  28. data/spec/lib/qti/v2/models/assessment_test_spec.rb +2 -2
  29. data/spec/lib/qti_spec.rb +1 -1
  30. metadata +44 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80f9b3b1c27523e4ff8470202b3b3b5cdd5db093
4
- data.tar.gz: cd4f93508be4b305f41dd08a031154d69822e1dd
3
+ metadata.gz: fca72c7437a08188ec2dddfd6d4c87e2375b03e7
4
+ data.tar.gz: a9b86a4529d3991f3ceca6c4ae0f86dde02608d1
5
5
  SHA512:
6
- metadata.gz: 626cea678c87de50f6e18270e42d24385e4a2d5cc01bc37db60d32573887daf180ee032601277374c1ba1e3b3fdd889dbcacba4badafbb48f9b77f6769a3aba3
7
- data.tar.gz: 4fa07a0ed1d5a9c1f792141acbe94953810922ee87809e1710847f356acf0887618256fb366f5bfa862407409a05fb556d936bb82fcd699f43363907051bf4c3
6
+ metadata.gz: 9f60d8c380b707d0588a2b1201a5d430dfeaf0f44c2b1f0090367e33c50daba14d5a0334a81e4ee408204c6a62b63a1b87e8e08e92795f71e06ff507c759c2cf
7
+ data.tar.gz: 76849de696c0d8b90ff4759a70172385d3a4d892e1986d02fbee7749c480a21a48f4b0a8814257b2ad2627bd7ac27305d849349397b56a4ec6284e3a2b7bec3d
@@ -4,16 +4,21 @@ module Qti
4
4
  module Models
5
5
  class Manifest < Qti::Models::Base
6
6
  def assessment_test_href
7
- href = qti_1_href.nil? ? qti_2_href : qti_1_href
7
+ href = qti_1_href.nil? ? qti_2_x_href : qti_1_href
8
8
  remap_href_path(href, @path)
9
9
  end
10
10
 
11
11
  def qti_1_href
12
- xpath_with_single_check("//xmlns:resources/xmlns:resource[@type='imsqti_xmlv1p1']/@href")&.content
12
+ xpath_with_single_check(
13
+ "//xmlns:resources/xmlns:resource[@type='imsqti_xmlv1p1']/@href"
14
+ )&.content
13
15
  end
14
16
 
15
- def qti_2_href
16
- xpath_with_single_check("//xmlns:resources/xmlns:resource[@type='imsqti_test_xmlv2p2']/@href")&.content
17
+ def qti_2_x_href
18
+ xpath_with_single_check(
19
+ "//xmlns:resources/xmlns:schemaLocation[@type='imsqti_item_xmlv2p1'
20
+ or @type='imsqti_test_xmlv2p2']/@href"
21
+ )&.content
17
22
  end
18
23
  end
19
24
  end
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <assessmentItem adaptive="false" identifier="VE-IP-01"
3
+ timeDependent="false"
4
+ title="QTI v2.1 Entry Profile Single T/F Item Test Instance"
5
+ xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p2.xsd">
7
+ <responseDeclaration baseType="identifier" cardinality="single" identifier="RESPONSE">
8
+ <correctResponse>
9
+ <value>true</value>
10
+ </correctResponse>
11
+ </responseDeclaration>
12
+ <outcomeDeclaration baseType="float" cardinality="single"
13
+ identifier="SCORE" normalMaximum="1" normalMinimum="0">
14
+ <defaultValue>
15
+ <value>0</value>
16
+ </defaultValue>
17
+ </outcomeDeclaration>
18
+ <itemBody id="content5">
19
+ <p id="content2">Answer the following question.</p>
20
+ <choiceInteraction id="content1" maxChoices="1" minChoices="0"
21
+ responseIdentifier="RESPONSE" shuffle="false">
22
+ <prompt id="content6">Sigmund Freud and Carl Jung both belong to the psychoanalytic school of psychology.</prompt>
23
+ <simpleChoice fixed="true" id="content8" identifier="true" showHide="show">
24
+ <p id="content7">True</p>
25
+ </simpleChoice>
26
+ <simpleChoice fixed="true" id="content4" identifier="false" showHide="show">
27
+ <p id="content3">False</p>
28
+ </simpleChoice>
29
+ </choiceInteraction>
30
+ </itemBody>
31
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/match_correct"/>
32
+ </assessmentItem>
33
+ <!-- ************************************************************************************************** -->
34
+ <!-- -->
35
+ <!-- Authors: Tom Hoffmann (Measured Progress, USA) -->
36
+ <!-- Zach Pierce (Measured progress, USA) -->
37
+ <!-- Colin Smythe (IMS Global, UK) -->
38
+ <!-- Wilbert Kraan (CETIS, UK) -->
39
+ <!-- Version: 1.0 -->
40
+ <!-- Date: 28 March, 2013 -->
41
+ <!-- -->
42
+ <!-- Description: Test File (Valid) for the QTIv2.1 Entry Level Profile (QTI only data). -->
43
+ <!-- This is the single QTI Item with a Choice Interaction to create a T/F question -->
44
+ <!-- with embedded response processing. -->
45
+ <!-- All compliant systems should import this QTI Item XML. -->
46
+ <!-- -->
47
+ <!-- History: First formal release. -->
48
+ <!-- -->
49
+ <!-- Copyright: 2014 (c) IMS Global Learning Consortium 1999-2014. All Rights Reserved. -->
50
+ <!-- -->
51
+ <!-- Use of this example to develop products or services is governed by the license with -->
52
+ <!-- IMS found on the IMS website: http://www.imsglobal.org/license.html. -->
53
+ <!-- -->
54
+ <!-- Permission is granted to all parties to use excerpts from this document as needed -->
55
+ <!-- in producing requests for proposals. -->
56
+ <!-- -->
57
+ <!-- The limited permissions granted above are perpetual and will not be revoked by IMS -->
58
+ <!-- or its successors or assigns. -->
59
+ <!-- -->
60
+ <!-- THIS EXAMPLE IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, -->
61
+ <!-- ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICA- -->
62
+ <!-- TION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTI- -->
63
+ <!-- UM NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY -->
64
+ <!-- IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR -->
65
+ <!-- INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION. -->
66
+ <!-- -->
67
+ <!--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-->
@@ -0,0 +1,38 @@
1
+ #div1 { position:relative; height:170px; }
2
+ #labelA {
3
+ font-size: 16pt;
4
+ font-family:Verdana, Geneva, sans-serif;
5
+ font-style:italic;
6
+ position:absolute;
7
+ left:44px;
8
+ top:144px;
9
+ z-index:2;
10
+ }
11
+ #labelB {
12
+ font-size: 16pt;
13
+ font-family:Verdana, Geneva, sans-serif;
14
+ font-style:italic;
15
+ position:absolute;
16
+ left:44px;
17
+ top:4px;
18
+ z-index:3;
19
+ }
20
+ #labelC {
21
+ font-size: 16pt;
22
+ font-family:Verdana, Geneva, sans-serif;
23
+ font-style:italic;
24
+ position:absolute;
25
+ left:268px;
26
+ top:4px;
27
+ z-index:4;
28
+ }
29
+ #labelD {
30
+ font-size: 16pt;
31
+ font-family:Verdana, Geneva, sans-serif;
32
+ font-style:italic;
33
+ position:absolute;
34
+ left:268px;
35
+ top:144px;
36
+ z-index:5;
37
+ }
38
+ #figure1 { position:absolute; left:40px; z-index:1; }
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4
+ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
5
+ ]>
6
+ <svg version="1.0"
7
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
8
+ x="0px" y="0px" width="250px" height="165px" viewBox="-19.3 -3.818 250 165"
9
+ overflow="visible" enable-background="new -19.3 -3.818 250 165" xml:space="preserve">
10
+ <defs>
11
+ </defs>
12
+ <rect fill="#FFFFFF" width="206.452" height="156.682"/>
13
+ <rect x="3.226" y="3.132" fill="#A7A9AC" width="99.772" height="100.094"/>
14
+ <rect x="3.226" y="3.132" fill="none" stroke="#231F20" stroke-width="2" stroke-miterlimit="10" width="200" height="150"/>
15
+ <g>
16
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="3.226" y1="153.131" x2="3.226" y2="3.132"/>
17
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="53.226" y1="153.131" x2="53.226" y2="3.132"/>
18
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="103.226" y1="153.131" x2="103.226" y2="3.132"/>
19
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="153.226" y1="153.131" x2="153.226" y2="3.132"/>
20
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="203.226" y1="153.131" x2="203.226" y2="3.132"/>
21
+ </g>
22
+ <g>
23
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="202.768" y1="153.131" x2="3.23" y2="153.131"/>
24
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="202.768" y1="103.131" x2="3.229" y2="103.131"/>
25
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="202.768" y1="53.131" x2="3.229" y2="53.131"/>
26
+ <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="202.768" y1="3.131" x2="3.228" y2="3.131"/>
27
+ </g>
28
+ </svg>
@@ -0,0 +1,121 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <assessmentItem adaptive="false" identifier="VE-IP-02"
3
+ timeDependent="false"
4
+ title="QTI v2.1 Entry Profile Single MC/SR Item Test Instance"
5
+ xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1998/Math/MathML http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p2.xsd">
7
+ <responseDeclaration baseType="identifier" cardinality="single" identifier="RESPONSE">
8
+ <correctResponse>
9
+ <value>D</value>
10
+ </correctResponse>
11
+ </responseDeclaration>
12
+ <outcomeDeclaration baseType="float" cardinality="single"
13
+ identifier="SCORE" normalMaximum="1" normalMinimum="0">
14
+ <defaultValue>
15
+ <value>0</value>
16
+ </defaultValue>
17
+ </outcomeDeclaration>
18
+ <stylesheet href="apip_VE_IP_02.css" type="text/css"/>
19
+ <itemBody>
20
+ <div id="div1">
21
+ <img
22
+ alt="Figure showing Rectangle ABCD divided into 12 equal boxes. 4 of the boxes are shaded."
23
+ height="165" id="figure1" src="apip_VE_IP_02.svg" width="250"/>
24
+ <span id="labelA">A</span>
25
+ <span id="labelB">B</span>
26
+ <span id="labelC">C</span>
27
+ <span id="labelD">D</span>
28
+ </div>
29
+ <choiceInteraction id="choicereduction" maxChoices="1"
30
+ responseIdentifier="RESPONSE" shuffle="false">
31
+ <prompt id="prompt">In the figure above, what fraction of the rectangle <em>ABCD</em> is
32
+ shaded?</prompt>
33
+ <simpleChoice fixed="true" identifier="A">
34
+ <p id="p2">
35
+ <math id="r1" xmlns="http://www.w3.org/1998/Math/MathML">
36
+ <mfrac>
37
+ <mn>1</mn>
38
+ <mn>6</mn>
39
+ </mfrac>
40
+ </math>
41
+ </p>
42
+ </simpleChoice>
43
+ <simpleChoice fixed="true" identifier="B">
44
+ <p id="p3">
45
+ <math id="r2" xmlns="http://www.w3.org/1998/Math/MathML">
46
+ <mfrac>
47
+ <mn>1</mn>
48
+ <mn>5</mn>
49
+ </mfrac>
50
+ </math>
51
+ </p>
52
+ </simpleChoice>
53
+ <simpleChoice fixed="true" identifier="C">
54
+ <p id="p4">
55
+ <math id="r3" xmlns="http://www.w3.org/1998/Math/MathML">
56
+ <mfrac>
57
+ <mn>1</mn>
58
+ <mn>4</mn>
59
+ </mfrac>
60
+ </math>
61
+ </p>
62
+ </simpleChoice>
63
+ <simpleChoice fixed="true" identifier="D">
64
+ <p id="p5">
65
+ <math id="r4" xmlns="http://www.w3.org/1998/Math/MathML">
66
+ <mfrac>
67
+ <mn>1</mn>
68
+ <mn>3</mn>
69
+ </mfrac>
70
+ </math>
71
+ </p>
72
+ </simpleChoice>
73
+ <simpleChoice fixed="true" identifier="E">
74
+ <p id="p6">
75
+ <math id="r5" xmlns="http://www.w3.org/1998/Math/MathML">
76
+ <mfrac>
77
+ <mn>1</mn>
78
+ <mn>2</mn>
79
+ </mfrac>
80
+ </math>
81
+ </p>
82
+ </simpleChoice>
83
+ </choiceInteraction>
84
+ </itemBody>
85
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/match_correct"/>
86
+ </assessmentItem>
87
+ <!-- ************************************************************************************************** -->
88
+ <!-- -->
89
+ <!-- Authors: Tom Hoffmann (Measured Progress, USA) -->
90
+ <!-- Zach Pierce (Measured progress, USA) -->
91
+ <!-- Colin Smythe (IMS Global, UK) -->
92
+ <!-- Wilbert Kraan (CETIS, UK) -->
93
+ <!-- Version: 1.0 -->
94
+ <!-- Date: 28 March, 2014 -->
95
+ <!-- -->
96
+ <!-- Description: Test File (Valid) for the QTIv2.1 Entry Level Profile -->
97
+ <!-- This is the single QTI Item with a Choice Interaction to create a MC/SR question -->
98
+ <!-- with embedded response processing. -->
99
+ <!-- All compliant systems should import this QTI Item XML. -->
100
+ <!-- -->
101
+ <!-- History: First formal release. -->
102
+ <!-- -->
103
+ <!-- Copyright: 2014 (c) IMS Global Learning Consortium 1999-2014. All Rights Reserved. -->
104
+ <!-- -->
105
+ <!-- Use of this example to develop products or services is governed by the license with -->
106
+ <!-- IMS found on the IMS website: http://www.imsglobal.org/license.html. -->
107
+ <!-- -->
108
+ <!-- Permission is granted to all parties to use excerpts from this document as needed -->
109
+ <!-- in producing requests for proposals. -->
110
+ <!-- -->
111
+ <!-- The limited permissions granted above are perpetual and will not be revoked by IMS -->
112
+ <!-- or its successors or assigns. -->
113
+ <!-- -->
114
+ <!-- THIS EXAMPLE IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, -->
115
+ <!-- ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICA- -->
116
+ <!-- TION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTI- -->
117
+ <!-- UM NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY -->
118
+ <!-- IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR -->
119
+ <!-- INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION. -->
120
+ <!-- -->
121
+ <!--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-->
@@ -0,0 +1,129 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <assessmentItem adaptive="false" identifier="VE-IP-03"
3
+ timeDependent="false"
4
+ title="QTI v2.1 Entry Profile Single MC/MR Item Test Instance"
5
+ xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p2.xsd">
7
+ <responseDeclaration baseType="identifier" cardinality="multiple" identifier="RESPONSE">
8
+ <correctResponse>
9
+ <value>option1</value>
10
+ <value>option2</value>
11
+ <value>option4</value>
12
+ </correctResponse>
13
+ <mapping defaultValue="-2" lowerBound="0" upperBound="3">
14
+ <mapEntry mapKey="option1" mappedValue="1"/>
15
+ <mapEntry mapKey="option2" mappedValue="1"/>
16
+ <mapEntry mapKey="option3" mappedValue="-1"/>
17
+ <mapEntry mapKey="option4" mappedValue="1"/>
18
+ <mapEntry mapKey="option5" mappedValue="-1"/>
19
+ </mapping>
20
+ </responseDeclaration>
21
+ <outcomeDeclaration baseType="float" cardinality="single" identifier="SCORE"/>
22
+ <itemBody id="theWholeItem">
23
+ <p id="p1">
24
+ <span id="a">Ms. Smith's class contains 24 students. </span>
25
+ <span id="b">Each student voted for his or her favorite color. </span>
26
+ <span id="c">The result of the class vote is shown </span>
27
+ <span id="z">in the table below.</span>
28
+ </p>
29
+ <table id="table001">
30
+ <caption id="d">Results of the Class Vote</caption>
31
+ <tbody>
32
+ <tr id="columnheadings">
33
+ <td id="th001">
34
+ <span id="e">Color</span>
35
+ </td>
36
+ <td id="th002">
37
+ <span id="f">Number of Students</span>
38
+ </td>
39
+ </tr>
40
+ <tr id="u">
41
+ <td id="td001">
42
+ <span id="g">Red</span>
43
+ </td>
44
+ <td id="td002">
45
+ <span id="h">12</span>
46
+ </td>
47
+ </tr>
48
+ <tr id="v">
49
+ <td id="td003">
50
+ <span id="i">Blue</span>
51
+ </td>
52
+ <td id="td004">
53
+ <span id="j">6</span>
54
+ </td>
55
+ </tr>
56
+ <tr id="w">
57
+ <td id="td005">
58
+ <span id="k">Green</span>
59
+ </td>
60
+ <td id="td006">
61
+ <span id="l">4</span>
62
+ </td>
63
+ </tr>
64
+ <tr id="x">
65
+ <td id="td007">
66
+ <span id="m">Yellow</span>
67
+ </td>
68
+ <td id="td008">
69
+ <span id="n">2</span>
70
+ </td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+ <choiceInteraction maxChoices="5" responseIdentifier="RESPONSE" shuffle="false">
75
+ <prompt id="o">Indicate which of the following statements are accurate.</prompt>
76
+ <simpleChoice fixed="true" identifier="option1">
77
+ <p id="p">The majority of students voted for Red.</p>
78
+ </simpleChoice>
79
+ <simpleChoice fixed="true" identifier="option2">
80
+ <p id="q">Twice as many students voted for Red a voted for Blue.</p>
81
+ </simpleChoice>
82
+ <simpleChoice fixed="true" identifier="option3">
83
+ <p id="r">Two percent of students voted for Yellow.</p>
84
+ </simpleChoice>
85
+ <simpleChoice fixed="true" identifier="option4">
86
+ <p id="s">Red received more votes than any other color.</p>
87
+ </simpleChoice>
88
+ <simpleChoice fixed="true" identifier="option5">
89
+ <p id="t">Twenty-five percent of students voted for Green.</p>
90
+ </simpleChoice>
91
+ </choiceInteraction>
92
+ </itemBody>
93
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response"/>
94
+ </assessmentItem>
95
+ <!-- ************************************************************************************************** -->
96
+ <!-- -->
97
+ <!-- Authors: Tom Hoffmann (Measured Progress, USA) -->
98
+ <!-- Zach Pierce (Measured progress, USA) -->
99
+ <!-- Colin Smythe (IMS Global, UK) -->
100
+ <!-- Wilbert Kraan (CETIS, UK) -->
101
+ <!-- Version: 1.0 -->
102
+ <!-- Date: 28 March, 2014 -->
103
+ <!-- -->
104
+ <!-- Description: Test File (Valid) for the QTIv2.1 Entry Level Profile -->
105
+ <!-- This is the single QTI Item with a Choice Interaction to create a MC/MR question -->
106
+ <!-- with embedded response processing. -->
107
+ <!-- All compliant systems should import this QTI Item XML. -->
108
+ <!-- -->
109
+ <!-- History: First formal release. -->
110
+ <!-- -->
111
+ <!-- Copyright: 2014 (c) IMS Global Learning Consortium 1999-2014. All Rights Reserved. -->
112
+ <!-- -->
113
+ <!-- Use of this example to develop products or services is governed by the license with -->
114
+ <!-- IMS found on the IMS website: http://www.imsglobal.org/license.html. -->
115
+ <!-- -->
116
+ <!-- Permission is granted to all parties to use excerpts from this document as needed -->
117
+ <!-- in producing requests for proposals. -->
118
+ <!-- -->
119
+ <!-- The limited permissions granted above are perpetual and will not be revoked by IMS -->
120
+ <!-- or its successors or assigns. -->
121
+ <!-- -->
122
+ <!-- THIS EXAMPLE IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, -->
123
+ <!-- ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICA- -->
124
+ <!-- TION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTI- -->
125
+ <!-- UM NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY -->
126
+ <!-- IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR -->
127
+ <!-- INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION. -->
128
+ <!-- -->
129
+ <!--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-->
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <assessmentItem adaptive="false" identifier="VE-IP-04"
3
+ timeDependent="false"
4
+ title="QTI v2.1 Entry Profile Single FIB Item Test Instance"
5
+ xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1p2.xsd">
7
+ <responseDeclaration baseType="string" cardinality="single" identifier="RESPONSE">
8
+ <correctResponse>
9
+ <value>Lake Michigan</value>
10
+ </correctResponse>
11
+ <mapping defaultValue="0">
12
+ <mapEntry mapKey="Lake Michigan" mappedValue="1"/>
13
+ <mapEntry mapKey="lake michigan" mappedValue="1"/>
14
+ <mapEntry mapKey="lake Michigan" mappedValue="1"/>
15
+ <mapEntry mapKey="Lake michigan" mappedValue="1"/>
16
+ <mapEntry mapKey="Michigan" mappedValue="0.5"/>
17
+ <mapEntry mapKey="michigan" mappedValue="0.5"/>
18
+ </mapping>
19
+ </responseDeclaration>
20
+ <outcomeDeclaration baseType="float" cardinality="single"
21
+ identifier="SCORE" normalMaximum="1" normalMinimum="0">
22
+ <defaultValue>
23
+ <value>0.0</value>
24
+ </defaultValue>
25
+ </outcomeDeclaration>
26
+ <itemBody>
27
+ <p id="stem_1">Canada and the United States share 4 out of the 5 Great Lakes in central North America.</p>
28
+ <p id="prompt_1">Which lake is entirely within the boundaries of the United States?</p>
29
+ <p id="response_1">Type your answer here: <textEntryInteraction
30
+ expectedLength="15" responseIdentifier="RESPONSE"/>
31
+ </p>
32
+ </itemBody>
33
+ <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response"/>
34
+ </assessmentItem>
35
+ <!-- ************************************************************************************************** -->
36
+ <!-- -->
37
+ <!-- Authors: Tom Hoffmann (Measured Progress, USA) -->
38
+ <!-- Zach Pierce (Measured progress, USA) -->
39
+ <!-- Colin Smythe (IMS Global, UK) -->
40
+ <!-- Wilbert Kraan (CETIS, UK) -->
41
+ <!-- Version: 1.0 -->
42
+ <!-- Date: 28 March, 2013 -->
43
+ <!-- -->
44
+ <!-- Description: Test File (Valid) for the QTIv2.1 Entry Level Profile -->
45
+ <!-- This is the single QTI Item with a Text Entry Interaction to create a FIB question -->
46
+ <!-- with embedded response processing. -->
47
+ <!-- All compliant systems should import this QTI Item XML. -->
48
+ <!-- -->
49
+ <!-- History: First formal release. -->
50
+ <!-- -->
51
+ <!-- Copyright: 2014 (c) IMS Global Learning Consortium 1999-2014. All Rights Reserved. -->
52
+ <!-- -->
53
+ <!-- Use of this example to develop products or services is governed by the license with -->
54
+ <!-- IMS found on the IMS website: http://www.imsglobal.org/license.html. -->
55
+ <!-- -->
56
+ <!-- Permission is granted to all parties to use excerpts from this document as needed -->
57
+ <!-- in producing requests for proposals. -->
58
+ <!-- -->
59
+ <!-- The limited permissions granted above are perpetual and will not be revoked by IMS -->
60
+ <!-- or its successors or assigns. -->
61
+ <!-- -->
62
+ <!-- THIS EXAMPLE IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, -->
63
+ <!-- ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICA- -->
64
+ <!-- TION SHALL BE MADE ENTIRELY AT THE IMPLEMENTERS OWN RISK, AND NEITHER THE CONSORTI- -->
65
+ <!-- UM NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY -->
66
+ <!-- IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR -->
67
+ <!-- INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION. -->
68
+ <!-- -->
69
+ <!--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-->