Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/3-MCQs.xml
<?xml version="1.0" ?>
<!DOCTYPE questestinterop SYSTEM "ims_qtiasiv1p2p1.dtd">
<questestinterop><assessment ident="9A9783F9-6365-4AB3-9EA1-17A536570683">
<section title="Three MCQs" ident="AMS_170"><outcomes_processing scoremodel="SumofScores">
<outcomes><decvar defaultval="0" varname="COUNT" vartype="Integer" minvalue="0" maxvalue="3" cutvalue="5">
</decvar></outcomes></outcomes_processing>
<item ident="5714972E-1873-4909-9DDE-EA5E2C36DE0D" label="Mark Radcliffe was accompanied by The Boy ... ?" title="Multiple Choice Static"><itemmetadata><qtimetadata><qtimetadatafield><fieldlabel>qmd_weighting</fieldlabel><fieldentry>1.00</fieldentry></qtimetadatafield></qtimetadata><qtimetadata><qtimetadatafield><fieldlabel>qmd_penaltyvalue</fieldlabel><fieldentry>0.0</fieldentry></qtimetadatafield></qtimetadata><qmd_itemtype>Multiple Choice Static</qmd_itemtype><qmd_levelofdifficulty>Easy</qmd_levelofdifficulty><qmd_maximumscore>1</qmd_maximumscore>
<qmd_status>Normal</qmd_status><qmd_toolvendor>Excelsoft</qmd_toolvendor><qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic><qmd_weighting>1.00</qmd_weighting></itemmetadata><presentation label="MultipleChoice"><material><mattext texttype="text/html"><![CDATA[<P>Mark Radcliffe was accompanied by The Boy ... ?</P>]]></mattext></material><response_lid ident="5714972E-1873-4909-9DDE-EA5E2C36DE0D" rcardinality="Single" rtiming="No"><render_choice shuffle="Yes"><response_label ident="1"><flow_mat class="List"><material><mattext texttype="text/html"><![CDATA[Cakey]]></mattext></material></flow_mat></response_label><response_label ident="2"><flow_mat class="List"><material><mattext texttype="text/html"><![CDATA[Lard]]></mattext></material></flow_mat></response_label><response_label ident="3"><flow_mat class="List"><material><mattext texttype="text/html"><![CDATA[Bucket]]></mattext></material></flow_mat></response_label><response_label ident="4"><flow_mat class="List"><material><mattext texttype="text/html"><![CDATA[Trobbs]]></mattext></material></flow_mat></response_label></render_choice></response_lid></presentation><resprocessing><outcomes><decvar varname="SCORE" vartype="Decimal" defaultval="0" /></outcomes><respcondition title="1" continue="No"><conditionvar><varequal respident="5714972E-1873-4909-9DDE-EA5E2C36DE0D">1</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="1" /></respcondition><respcondition title="2" continue="No"><conditionvar><varequal respident="5714972E-1873-4909-9DDE-EA5E2C36DE0D">2</varequal></conditionvar><setvar action="Set" varname="SCORE">1</setvar><displayfeedback feedbacktype="Response" linkrefid="2" /></respcondition><respcondition title="3" continue="No"><conditionvar><varequal respident="5714972E-1873-4909-9DDE-EA5E2C36DE0D">3</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="3" /></respcondition><respcondition title="4" continue="No"><conditionvar><varequal respident="5714972E-1873-4909-9DDE-EA5E2C36DE0D">4</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="4" /></respcondition></resprocessing><itemfeedback ident="1" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[No, Cakey is not right at all]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="2" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[Lard it is!]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="3" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[Bucket? No. Whoever heard of "The Boy Bucket"?]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="4" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[No, you silly, "Trobbs" is totally made up....]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="Hints" view="All"><hint feedbackstyle="Multilevel"><hintmaterial><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></hintmaterial></hint></itemfeedback></item><item ident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970" label="see good qs?" title="Multiple Choice Static"><itemmetadata><qmd_itemtype>Multiple Choice Static</qmd_itemtype><qmd_maximumscore>1</qmd_maximumscore><qmd_status>Normal</qmd_status><qmd_levelofdifficulty>Easy</qmd_levelofdifficulty><qmd_weighting>1.00</qmd_weighting><qmd_toolvendor>Excelsoft</qmd_toolvendor><qtimetadata><qtimetadatafield><fieldlabel>qmd_weighting</fieldlabel><fieldentry>1.00</fieldentry></qtimetadatafield></qtimetadata><qtimetadata><qtimetadatafield><fieldlabel>qmd_penaltyvalue</fieldlabel><fieldentry>0.0</fieldentry></qtimetadatafield></qtimetadata><qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic></itemmetadata><duration>P0Y0M0DT0H1M0S</duration><presentation label="MultipleChoice"><material><mattext texttype="text/html"><![CDATA[Would you like to see some really good questions?]]></mattext></material><response_lid ident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970" rcardinality="Single" rtiming="No"><render_choice shuffle="No"><response_label ident="1"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA[Yes]]></mattext></material></flow_mat></response_label><response_label ident="2"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA[No]]></mattext></material></flow_mat></response_label></render_choice></response_lid></presentation><resprocessing><outcomes><decvar varname="SCORE" vartype="Decimal" defaultval="0" /></outcomes><respcondition title="1"><conditionvar><varequal respident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970">1</varequal></conditionvar><setvar action="Set" varname="SCORE">1</setvar><displayfeedback feedbacktype="Response" linkrefid="1" /></respcondition><respcondition title="2"><conditionvar><varequal respident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970">2</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="2" /></respcondition></resprocessing><itemfeedback ident="1" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[Well OK then! Here we go...]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="2" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[OK then. Boring questions it is.]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="Hints" view="All"><hint feedbackstyle="Multilevel"><hintmaterial><flow_mat><material><mattext></mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext></mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext></mattext></material></flow_mat></hintmaterial></hint></itemfeedback></item><item ident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9" label="duck-is-to" title="Multiple Choice Static"><itemmetadata><qmd_itemtype>Multiple Choice Static</qmd_itemtype><qmd_maximumscore>1</qmd_maximumscore><qmd_status>Normal</qmd_status><qmd_levelofdifficulty>Easy</qmd_levelofdifficulty><qmd_weighting>1.00</qmd_weighting><qmd_toolvendor>Excelsoft</qmd_toolvendor><qtimetadata><qtimetadatafield><fieldlabel>qmd_weighting</fieldlabel><fieldentry>1.00</fieldentry></qtimetadatafield></qtimetadata><qtimetadata><qtimetadatafield><fieldlabel>qmd_penaltyvalue</fieldlabel><fieldentry>0.0</fieldentry></qtimetadatafield></qtimetadata><qmd_topic><![CDATA[UCL]]></qmd_topic></itemmetadata><duration>P0Y0M0DT0H0M20S</duration><presentation label="MultipleChoice"><material><mattext texttype="text/html"><![CDATA[<P>If "duck" is to "quack", then "dog" is to...</P>]]></mattext></material><response_lid ident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9" rcardinality="Single" rtiming="No"><render_choice shuffle="Yes"><response_label ident="1"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA["Woof"]]></mattext></material></flow_mat></response_label><response_label ident="2"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA["Quack"]]></mattext></material></flow_mat></response_label><response_label ident="3"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA["Quog"]]></mattext></material></flow_mat></response_label><response_label ident="4"><flow_mat class="Block"><material><mattext texttype="text/html"><![CDATA["Wamp"]]></mattext></material></flow_mat></response_label></render_choice></response_lid></presentation><resprocessing><outcomes><decvar varname="SCORE" vartype="Decimal" defaultval="0" /></outcomes><respcondition title="1"><conditionvar><varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">1</varequal></conditionvar><setvar action="Set" varname="SCORE">1</setvar><displayfeedback feedbacktype="Response" linkrefid="1" /></respcondition><respcondition title="2"><conditionvar><varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">2</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="2" /></respcondition><respcondition title="3"><conditionvar><varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">3</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="3" /></respcondition><respcondition title="4"><conditionvar><varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">4</varequal></conditionvar><setvar action="Set" varname="SCORE">0</setvar><displayfeedback feedbacktype="Response" linkrefid="4" /></respcondition></resprocessing><itemfeedback ident="1" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="2" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="3" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="4" view="All"><flow_mat><material><mattext texttype="text/html"><![CDATA[]]></mattext></material></flow_mat></itemfeedback><itemfeedback ident="Hints" view="All"><hint feedbackstyle="Multilevel"><hintmaterial><flow_mat><material><mattext>What sound does a dog make?</mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext></mattext></material></flow_mat></hintmaterial><hintmaterial><flow_mat><material><mattext></mattext></material></flow_mat></hintmaterial></hint></itemfeedback></item>

	<item title = "Component use 1" ident = "NSFB_electronics_01_v1p2">    
		<presentation>      
			<material>        
				<mattext>Which electronic component allows alternating current (AC) to flow but prevents direct current (DC) flowing?</mattext>      
			</material>      
			<response_lid ident = "MC_01" rcardinality = "Single" rtiming = "No">        
				<render_choice shuffle = "Yes">          
					<response_label ident = "A">            
						<material>              
							<mattext>A transistor.</mattext>            
						</material>          
					</response_label>          
					<response_label ident = "B">            
						<material>              
							<mattext>A resistor</mattext>            
						</material>          
					</response_label>          
					<response_label ident = "C">            
						<material>              
							<mattext>A capacitor</mattext>            
						</material>          
					</response_label>          
					<response_label ident = "D">            
						<material>              
							<mattext>An inductor</mattext>            
						</material>          
					</response_label>        
				</render_choice>      
			</response_lid>    
		</presentation>    
		<resprocessing>      
			<outcomes>        
				<decvar/>      
			</outcomes>      
			<respcondition title = "Transistor" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_01">A</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Transistor"/>      
			</respcondition>      
			<respcondition title = "Resistor" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_01">B</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Resistor"/>      
			</respcondition>      
			<respcondition title = "Capacitor" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_01">C</varequal>        
				</conditionvar>        
				<setvar action = "Set">1</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Capacitor"/>      
			</respcondition>      
			<respcondition title = "Inductor" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_01">D</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Inductor"/>      
			</respcondition>    
		</resprocessing>    
		<itemfeedback ident = "Transistor" view = "Candidate">      
			<material>        
				<mattext>Transistors are used to amplify or switch both AC and DC currents, the correct answer is capacitor.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "Resistor" view = "Candidate">      
			<material>        
				<mattext>Resistors impede the flow of both AC and DC currents, the correct answer is capacitor.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "Capacitor" view = "Candidate">      
			<material>        
				<mattext>Yes, capacitors prevent DC current flowing.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "Inductor" view = "Candidate">      
			<material>        
				<mattext>Inductors have high impedance for AC currents and low impedance for DC currents, the correct answer is capacitor.</mattext>      
			</material>    
		</itemfeedback>  
	</item>

  <item title="Capital of France" ident="I01" maxattempts="6">
    <qticomment>
      This Item is also available in the accompanying example files.
    </qticomment>
    <rubric view="Candidate">
      <flow_mat>
        <material>
          <mattext>Choose only one of the choices available.</mattext>
        </material>
      </flow_mat>
    </rubric>
    <presentation label="Resp001">
      <flow>
        <material>
          <mattext>What is the Capital of France ?</mattext>
        </material>
        <response_lid ident="LID01">
          <render_choice shuffle="Yes">
            <flow_label>
              <response_label ident="LID01_A">
                <material><mattext>London</mattext></material>
              </response_label>
            </flow_label>
            <flow_label>
              <response_label ident="LID01_B">
                <material><mattext>Paris</mattext></material>
              </response_label>
            </flow_label>
            <flow_label>
              <response_label ident="LID01_C">
                <material><mattext>Washington</mattext></material>
              </response_label>
            </flow_label>
            <flow_label>
              <response_label ident="LID01_D" rshuffle="No">
                <material><mattext>Berlin</mattext></material>
              </response_label>
            </flow_label>
          </render_choice>
        </response_lid>
      </flow>
    </presentation>
    <resprocessing>
      <qticomment/>
      <outcomes>
        <decvar vartype="Integer" defaultval="0" minvalue="0" maxvalue="10"/>
      </outcomes>


      <respcondition>
        <qticomment>Scoring for the correct answer.</qticomment>
        <conditionvar>
          <varequal respident="LID01">LID01_B</varequal>
        </conditionvar>
        <setvar action="Set" varname="SCORE">10</setvar>
        <displayfeedback feedbacktype="Response" linkrefid="I01_IFBK01"/>
      </respcondition>
    </resprocessing>
    <itemfeedback title="Correct answer" ident="I01_IFBK01">
      <flow_mat>
        <material>
          <mattext>Correct answer.</mattext>
        </material>
      </flow_mat>
    </itemfeedback>
    <itemfeedback ident="I01_IFBK02">
      <solution>
        <solutionmaterial>
          <flow_mat>
            <material>
              <mattext>
                London is the Capital of England.
                Paris is the Capital of France.
                Washington is in the USA.
                Berlin is the Capital of Germany.
              </mattext>
            </material>
          </flow_mat>
        </solutionmaterial>
      </solution>
    </itemfeedback>
    <itemfeedback ident="I01_IFBK03" view="All">
      <hint feedbackstyle="Multilevel">
        <hintmaterial>
          <flow_mat>
            <material>
              <mattext>One of the choices is not in Europe.</mattext>
            </material>
          </flow_mat>
        </hintmaterial>
        <hintmaterial>
          <flow_mat>
            <material>
              <mattext>Berlin is the Capital of Germany.</mattext>
            </material>
          </flow_mat>
        </hintmaterial>
        <hintmaterial>
          <flow_mat>
            <material>
              <mattext>The Eiffel tower is in the Capital of France.</mattext>
            </material>
          </flow_mat>
        </hintmaterial>
      </hint>
    </itemfeedback>
  </item>
</section></assessment></questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP