1 <!-- true or false question (aka multiple choice with two choices) -->
2 <item title="True or False 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>True/false</fieldentry>
14 <fieldlabel>cc_profile</fieldlabel>
15 <fieldentry>cc.true_false.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">
30 <response_label ident="ChoiceT">
33 <mattext texttype="text/html"><?php echo _AT('true'); ?></mattext>
37 <response_label ident="ChoiceF">
40 <mattext texttype="text/html"><?php echo _AT('false'); ?></mattext>
50 <decvar varname="SCORE" />
52 <respcondition title="CorrectResponse">
54 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">
56 if ($this->row['answer_0'] == 1) {
64 <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
67 <?php if ($this->row['feedback']): ?>
68 <itemfeedback ident="FEEDBACK">
73 <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>