1 <h1>Embedded answers (Cloze)
</h1>
3 <p>This very flexible question type is similar to a
4 popular format known as the Cloze format.
</p>
6 <p>Questions consist of a passage of text (in Moodle format) that
7 has various answers embedded within it, including multiple choice,
8 short answers and numerical answers.
</p>
10 <p>There is currently no graphical interface to create these questions -
11 you need to specify the question format using the text box or by
12 importing them from external files.
</p>
14 <p>Here is an example of the input text used to specify such a question:
</p>
18 <textarea rows=
"15" cols=
"60" wrap=
"virtual">This question consists of some text with an answer embedded right here {
1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%
50%Answer that gives half the credit#Feedback for half credit answer} and right after that you will have to deal with this short answer {
1:SHORTANSWER:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%
50%Answer that gives half the credit#Feedback for half credit answer} and finally we have a floating point number {
2:NUMERICAL:=
23.8:
0.1#Feedback for correct answer
23.8~%
50%
23.8:
2#Feedback for half credit answer in the nearby region of the correct answer}.
20 Note that addresses like www.moodle.org and smileys :-) all work as normal:
21 a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion}
22 b) What grade would you give it? {
3:NUMERICAL:=
3:
2}
29 <p>This example will appear to students as follows:
</p>
33 <table align=
"center" width=
"90%" class=
"generalbox" border=
"0" cellpadding=
"5" cellspacing=
"0"><tr><td bgcolor=
"#FFFFFF" class=
"generalboxcontent"><table width=
"100%" cellspacing=
"10"><tr><td nowrap=
"nowrap" width=
"100" valign=
"top"><h1>3</h1><p align=
"center"><font size=
"1">8 Marks
</font></p><img height=
"1" width=
"100" src=
"pix/spacer.gif" alt=
"" /><br />
34 </td><td valign=
"top"><p>This question consists of some text with an answer embedded right here
<select name=
"q4ma1" ><option> </option><option value=
"4" >Wrong answer
</option><option value=
"5" >Another wrong answer
</option><option value=
"6" >Correct answer
</option><option value=
"7" >Answer that gives half the credit
</option></select> and right after that you will have to deal with this short answer
<input name=
"q4ma2" value=
"" type=
"text" size=
"8"/> and finally we have a floating point number
<input name=
"q4ma3" value=
"" type=
"text" size=
"8"/> .
<br />
38 Note that addresses like
<a href=
"http://www.moodle.org" target=
"_blank">www.moodle.org
</a> and smileys
<img alt=
"" border=
"0" src=
"pix/s/smiley.gif" width=
"15" height=
"15" /> all work as normal:
<br />
40 a) How good is this?
<select name=
"q4ma4" ><option> </option><option value=
"13" >Yes
</option><option value=
"14" >No
</option></select> <br />
42 b) What grade would you give it?
<input name=
"q4ma5" value=
"" type=
"text" size=
"8"/> <br />
46 Good luck!
</p></td></tr></table></td></tr></table>