1 <<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>>
2 <!-- multi answer multiple choice question with partial marks -->
4 xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 imsqti_v2p1.xsd"
7 identifier="ATUTOR-<?php echo $this->row['question_id']; ?>"
8 title="<?php echo $this->row['question']; ?>"
11 toolname="ATutor - atutor.ca"
12 toolversion="<?php echo VERSION; ?>"
14 <responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="identifier">
16 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
17 <?php if ($this->row['answer_'.$i]): ?>
18 <value>Choice<?php echo $i; ?></value>
22 <mapping lowerBound="0" upperBound="<?php echo $this->num_correct; ?>" defaultValue="0">
23 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
24 <?php if ($this->row['answer_'.$i]): ?>
25 <mapEntry mapKey="Choice<?php echo $i; ?>" mappedValue="1"/>
29 <?php if ($this->row['feedback']): ?>
30 <outcomeDeclaration identifier="FEEDBACK" cardinality="multiple" baseType="identifier"/>
32 </responseDeclaration>
35 <choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="0">
36 <prompt><?php echo $this->row['question']; ?></prompt>
37 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
38 <simpleChoice identifier="Choice<?php echo $i; ?>" fixed="false"><?php echo $this->row['choice_'.$i]; ?></simpleChoice>
43 <?php if ($this->row['feedback']): ?>
44 <modalFeedback outcomeIdentifier="FEEDBACK" identifier="FEEDBACK" showHide="hide"><?php echo $this->row['feedback']; ?></modalFeedback>