2.2.11.5 Embedded Answers (Cloze)

These questions embed the answers into the question. This allows you to have questions that look like this:

image

These are great questions, but do require some formatting. The Embedded Answer (Cloze) editing page looks like this:

image

The “Question name” names the question for the list. The “Image to display” near the bottom lists any pictures you have uploaded to your “Files” section. The “Question text” part is where you type your question, but this MUST include the formatting. This can take some getting used to. This text (from Moodle help) is a valid question, and produces the example shown at the beginning of this section:

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%N/A#Feedback for half-credit answer in the nearby region of the correct answer}.

The formatting works like this:

- Normal text is just typed (like “This question consists of some text with an answer embedded right here” from above).

- To open a field in the embedded question, use the left bracket { and close the field with the right bracket }.

- To insert a pull-down menu, type the number of points the field (the menu) is worth (1,2,3, etc.). The entire question is worth the total of all the points of each part (the menus and the short answer parts). Follow the number by a colon, followed by the word MULTICHOICE followed by another colon (1:MULTICHOICEsmile. Then type your possible answers followed by tildes (~). The correct answer must start with an equals sign (=). An answer that counts for partial credit starts with the percent sign followed by the credit followed by a percent sign (%50% for 50 % credit). A full example would be:

{2:MULTICHOICE:Washington~Jefferson~Lincoln~=Franklin~%50%Adams}

This would make a pull-down menu of 5 items. This menu would be worth 2 points. In this example, Washington, Jefferson and Lincoln are wrong, Franklin is right, and Adams is worth half-credit.

- To insert a short answer (fill-in-the-blank), put in the points the short answer is worth, followed by a colon followed by SHORTANSWER followed by a colon (2:SHORTANSWERsmile. Then put an equals sign (=) followed by the right answer inside the brackets. An example would be {2:SHORTANSWER:=Maine}. This would make a blank worth 2 points where the answer is Maine (and spelling does count!). You may list other correct answers by separating them by a tilde sign (~) – like this (don’t forget the “=” sign):

{2:SHORTANSWER:=Maine~=Ohio}.

When you have everything the way you want it, click on “Save changes.” Your Embedded Answers question will now be in the list.