Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/basic_electronics_02_qti_1_.xml
<?xml version = "1.0" encoding = "UTF-8" standalone = "no"?>
<!DOCTYPE questestinterop SYSTEM "ims_qtiasiv1p2.dtd">
<questestinterop>  
	<item title = "Component use 1" ident = "NSFB_electronics_02_v1p2">    
		<presentation>      
			<material>        
				<mattext texttype = "text/html"><![CDATA[Which of these symbols represents a <b>Field Effect Transistor</b> (FET)?]]></mattext>     
			</material>      
			<response_lid ident = "MC_02" rcardinality = "Single" rtiming = "No">        
				<render_choice shuffle = "Yes">          
					<response_label ident = "A">            
						<material>              
							<matimage imagtype = "image/gif" uri = "http://ford.ces.strath.ac.uk/images/cap.gif"/>           
						</material>          
					</response_label>          
					<response_label ident = "B">            
						<material>              
							<matimage imagtype = "image/gif" uri = "http://ford.ces.strath.ac.uk/images/fet.gif"/>           
						</material>          
					</response_label>          
					<response_label ident = "C">            
						<material>              
							<matimage imagtype = "image/gif" uri = "http://ford.ces.strath.ac.uk/images/pnp.gif"/>           
						</material>          
					</response_label>          
					<response_label ident = "D">            
						<material>              
							<matimage imagtype = "image/gif" uri = "http://ford.ces.strath.ac.uk/images/npn.gif"/>           
						</material>          
					</response_label>        
				</render_choice>      
			</response_lid>    
		</presentation>    
		<resprocessing>      
			<outcomes>        
				<decvar/>      
			</outcomes>      
			<respcondition title = "Cap" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_02">A</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Cap"/>      
			</respcondition>      
			<respcondition title = "FET" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_02">B</varequal>        
				</conditionvar>        
				<setvar action = "Set">1</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "FET"/>      
			</respcondition>      
			<respcondition title = "pnp" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_02">C</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "pnp"/>      
			</respcondition>      
			<respcondition title = "npn" continue = "Yes">        
				<conditionvar>          
					<varequal respident = "MC_02">D</varequal>        
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "npn"/>      
			</respcondition>    
			<respcondition title = "Incorrect">        
				<conditionvar>
					<or>          
						<varequal respident = "MC_02">A</varequal>       
						<varequal respident = "MC_02">C</varequal>       
						<varequal respident = "MC_02">D</varequal>  
					</or>     
				</conditionvar>        
				<setvar action = "Set">0</setvar>        
				<displayfeedback feedbacktype = "Response" linkrefid = "Incorrect"/>      
			</respcondition>    
		</resprocessing>    
		<itemfeedback ident = "Cap" view = "Candidate">      
			<material>        
				<mattext>No, the symbol you selected represents an electrolytic capacitor.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "FET" view = "Candidate">      
			<material>        
				<mattext>Yes, you selected the correct symbol.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "pnp" view = "Candidate">      
			<material>        
				<mattext>No, the symbol you selected represents a pnp transistor.</mattext>      
			</material>    
		</itemfeedback>    
		<itemfeedback ident = "npn" view = "Candidate">      
			<material>        
				<mattext>No, the symbol you selected represents a npn transistor.</mattext>      
			</material>    
		</itemfeedback>  
		<itemfeedback ident = "Incorrect" view = "Candidate">      
			<material>        
				<mattext>The symbol for a  Field Effect Transistor is -</mattext>      
				<matimage imagtype = "image/gif" uri = "http://ford.ces.strath.ac.uk/images/fet.gif"/>      
			</material>    
		</itemfeedback>  
	</item>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP