Membuat soal tipe cloze (soal tertanam) di Moodle
Penjelasan Syntax yang dipakai:
- All question items within a cloze-type question are coded inside curled braces { }.
- The number which appears between the opening brace and the colon {1: is the weighting of that item; if it is set at 1 for all the items, it needs not be specified, so you can have {:.
- After the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL.
- NOTE.- If you have installed the REGEXP question type plugin you can also use the REGEXP question type; see instructions here.
- The syntax for MULTICHOICE and SHORTANSWER is the same; the only difference is in the displaying of the item to the student.
- The order of the various answers is indifferent (except if you want a catch-all for wrong answers, see #13 below).
- A correct answer is preceded with the equal sign = or a percentage (usually %100%) - Note: The equal sign (=) doesn't seem to work with SHORTANSWER.
- A wrong answer is preceded with nothing or a percentage (usually %0%)but you can even use negative points by preceding with ~%-25% [not before Moodle 2.0]). Note that negative points are taken into account in all question behaviours except "Interactive with multiple tries".
- You can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage.
- All answers except the first one are separated from one another by the tilde ~ sign.
- Answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter.
- Note that the feedback message and the correct answer are displayed in a small popup window (if and when the correct and or feedback have been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title "feedback" and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.
- In the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a "wrong, try again" feedback; you can do this by inserting an asterisk * as the very last expected answer in your formula.
- You should not have sequences such as %#, %~, %}, =#, =%, =}, ~#, ~% and ~} in the answer because you should not have empty answers or empty answer options. These two character sequences constitute error syntaxes, where the second character is interpreted as if it were escaped(why?), and gives unexpected results: the answer is decoded as one instead of two or more.
Contoh penulisan soal
Match the following cities with the correct state: * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK} * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK} The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations! ~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}.