Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/VARIED.XML
<?xml version="1.0" standalone="no"?> <!DOCTYPE questestinterop SYSTEM "ims_qtiasiv1p2.dtd">
<questestinterop>
<assessment ident="I_Miranda_228.0">
<assessmentcontrol hintswitch="No"/>
<section ident="S_228.0">
<item ident="I_Miranda_228.0_1">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
This test is to check out my modifications to the Miranda tool wich are intended to make it more portable (and QTI 1.2 compliant) 
</mattext>
</material>
<response_extension/>
</presentation>
</item>
<item ident="I_Miranda_228.0_2">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
Which of these GUIs is produced by Microsoft?
</mattext>
</material>
<response_lid ident="Resp_1" rcardinality="Single" rtiming="No">
<render_choice>
<response_label ident="1" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
X Windows
</mattext>
</material>
</response_label>
<response_label ident="2" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Windows XP
</mattext>
</material>
</response_label>
<response_label ident="3" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
KDE
</mattext>
</material>
</response_label>
<response_label ident="4" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
MacOS
</mattext>
</material>
</response_label>
</render_choice>
</response_lid>
</presentation>
<resprocessing>
<outcomes>
<decvar/>
</outcomes>
<respcondition title="1">
<conditionvar>
<varequal respident="Resp_1">
1
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="1" feedbacktype="Response"/>
</respcondition>
<respcondition title="2">
<conditionvar>
<varequal respident="Resp_1">
2
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="2" feedbacktype="Response"/>
</respcondition>
<respcondition title="3">
<conditionvar>
<varequal respident="Resp_1">
3
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="3" feedbacktype="Response"/>
</respcondition>
<respcondition title="4">
<conditionvar>
<varequal respident="Resp_1">
4
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="4" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="1" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
X Windows is a UNIX GUI that originally came from MIT.
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="2" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Windows XP is tha latest version of Microsoft's GUI and OS.
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="3" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
KDE is an open source GUI for Linux.
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="4" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
MacOS is apple's GUI and operating system, nothing to do with Microsoft although their early desktop applications were designed for it.
</mattext>
</material>
</itemfeedback>
</item>
<item ident="I_Miranda_228.0_3">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
Was the Stelar's Sea Cow wiped out by man?
</mattext>
</material>
<response_lid ident="Resp_2" rcardinality="Single" rtiming="No">
<render_choice>
<response_label ident="1" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Yes
</mattext>
</material>
</response_label>
<response_label ident="2" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
No
</mattext>
</material>
</response_label>
</render_choice>
</response_lid>
</presentation>
<resprocessing>
<outcomes>
<decvar/>
</outcomes>
<respcondition title="1">
<conditionvar>
<varequal respident="Resp_2">
1
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="1" feedbacktype="Response"/>
</respcondition>
<respcondition title="2">
<conditionvar>
<varequal respident="Resp_2">
2
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="2" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="1" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Correct, the Stelar's Sea Cow was hunted to extinction within 30 years of it's discovery in the 18th centuary. 
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="2" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Wrong, the Stelar's Sea Cow was hunted to extinction within 30 years of it's discovery in the 18th centuary.
</mattext>
</material>
</itemfeedback>
</item>
<item ident="I_Miranda_228.0_4">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
The rabbit is an indigenous species in the British Isles.
</mattext>
</material>
<response_lid ident="Resp_3" rcardinality="Single" rtiming="No">
<render_choice>
<response_label ident="1" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
True
</mattext>
</material>
</response_label>
<response_label ident="2" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
False
</mattext>
</material>
</response_label>
</render_choice>
</response_lid>
</presentation>
<resprocessing>
<outcomes>
<decvar/>
</outcomes>
<respcondition title="1">
<conditionvar>
<varequal respident="Resp_3">
1
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="1" feedbacktype="Response"/>
</respcondition>
<respcondition title="2">
<conditionvar>
<varequal respident="Resp_3">
2
</varequal>
</conditionvar>
<setvar action="Set" varname="SCORE">
1
</setvar>
<displayfeedback linkrefid="2" feedbacktype="Response"/>
</respcondition>
</resprocessing>
<itemfeedback ident="1" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
No, the rabbit was introduced by the Normans as a source of food.
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="2" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Yes, the rabbit was introduced by the Normans as a source of food.
</mattext>
</material>
</itemfeedback>
</item>
<item ident="I_Miranda_228.0_5">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
Which of the following are albums by Belle and Sebastian?
</mattext>
</material>
<response_lid ident="Resp_4" rcardinality="Multiple" rtiming="No">
<render_choice>
<response_label ident="1" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
The boy with the arab strap
</mattext>
</material>
</response_label>
<response_label ident="2" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Brighter Later
</mattext>
</material>
</response_label>
<response_label ident="3" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Tales from Topographic Oceans
</mattext>
</material>
</response_label>
<response_label ident="4" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Tigermilk
</mattext>
</material>
</response_label>
<response_label ident="5" rshuffle="Yes" rarea="Ellipse" rrange="Exact">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Free the Twin
</mattext>
</material>
</response_label>
</render_choice>
</response_lid>
</presentation>
<resprocessing>
<outcomes>
<decvar/>
</outcomes>
<respcondition title="right">
<conditionvar>
<varequal respident="Resp_4">
1
</varequal>
<not>
<varequal respident="Resp_4">
2
</varequal>
</not>
<not>
<varequal respident="Resp_4">
3
</varequal>
</not>
<varequal respident="Resp_4">
4
</varequal>
<not>
<varequal respident="Resp_4">
5
</varequal>
</not>
</conditionvar>
<setvar varname="SCORE" action="Set">
1
</setvar>
<displayfeedback linkrefid="right" feedbacktype="Response"/>
</respcondition>
<respcondition title="wrong">
<conditionvar>
<other/>
</conditionvar>
<setvar varname="SCORE" action="Set">
0
</setvar>
<displayfeedback linkrefid="wrong" feedbacktype="Response"/>
</respcondition>
</resprocessing>
</item>
<item ident="I_Miranda_228.0_6">
<presentation>
<material>
<mattext texttype="text/plain" charset="ascii-us">
Complete the following quote from Pink Floyd.
</mattext>
</material>
<response_str ident="1" rcardinality="Single">
<render_fib fibtype="String" prompt="Box" rows="1" columns="10">
<material>
<mattext texttype="text/plain" charset="ascii-us">
We don't need no 
</mattext>
</material>
<response_label ident="A"/>
</render_fib>
</response_str>
<response_str ident="2" rcardinality="Single">
<render_fib fibtype="String" prompt="Box" rows="1" columns="10">
<material>
<mattext texttype="text/plain" charset="ascii-us">
We don't need no 
</mattext>
</material>
<response_label ident="A"/>
</render_fib>
</response_str>
<response_str ident="3" rcardinality="Single">
<render_fib fibtype="String" prompt="Box" rows="1" columns="10">
<material>
<mattext texttype="text/plain" charset="ascii-us">
control No dark 
</mattext>
</material>
<response_label ident="A"/>
</render_fib>
</response_str>
<response_str ident="4" rcardinality="Single">
<render_fib fibtype="String" prompt="Box" rows="1" columns="10">
<material>
<mattext texttype="text/plain" charset="ascii-us">
in the 
</mattext>
</material>
<response_label ident="A"/>
</render_fib>
</response_str>
<material>
<mattext texttype="text/plain" charset="ascii-us">
Teacher leave us kids alone
</mattext>
</material>
</presentation>
<resprocessing>
<outcomes>
<decvar varname="FIB5" vartype="Integer" defaultval="0"/>
</outcomes>
<respcondition>
<conditionvar>
<varequal respident="1" case="Yes">
education
</varequal>
<varequal respident="2" case="Yes">
thought
</varequal>
<varequal respident="3" case="Yes">
sarcasim
</varequal>
<varequal respident="4" case="Yes">
classroom
</varequal>
</conditionvar>
<setvar action="Add" varname="FIB">
1
</setvar>
<displayfeedback feedbacktype="Response" linkrefid="AllCorrect"/>
</respcondition>
<respcondition>
<conditionvar>
<other/>
</conditionvar>
<setvar>
0
</setvar>
<displayfeedback feedbacktype="Response" linkrefid="AllWrong"/>
</respcondition>
</resprocessing>
<itemfeedback ident="AllCorrect" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
Well done!
</mattext>
</material>
</itemfeedback>
<itemfeedback ident="AllWrong" view="Candidate">
<material>
<mattext texttype="text/plain" charset="ascii-us">
I thought every one knew that!
</mattext>
</material>
</itemfeedback>
</item>
</section>
</assessment>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP