1 <!-- single answer multiple choice question -->
2 <item title="Multiple choice question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
6 <fieldlabel>qmd_itemtype</fieldlabel>
7 <fieldentry>Logical Identifier</fieldentry>
10 <fieldlabel>qmd_questiontype</fieldlabel>
11 <fieldentry>Multiple-choice</fieldentry>
14 <fieldlabel>cc_profile</fieldlabel>
15 <fieldentry>cc.mutliple_choice.v0p1</fieldentry>
18 <fieldlabel>cc_weighting</fieldlabel>
19 <fieldentry><?php echo $this->weight; ?></fieldentry>
26 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
28 <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
29 <render_choice shuffle="No" minnumber="1" maxnumber="1">
30 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
31 <response_label ident="Choice<?php echo $i; ?>">
34 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
45 <decvar varname="SCORE" />
47 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
48 <?php if ($this->row['answer_'.$i]): ?>
49 <respcondition title="CorrectResponse">
51 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
53 <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
58 <?php if ($this->row['feedback']): ?>
59 <itemfeedback ident="FEEDBACK">
64 <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>