# Embedded answers (Cloze)

This very flexible question type is similar to a popular format known as the Cloze format.

Questions consist of a passage of text (in Moodle format) that has various sub-questions embedded within it, including

- short answers (SHORTANSWER or SA or MW), case is unimportant,
- short answers (SHORTANSWER_C or SAC or MWC), case must match,
- numerical answers (NUMERICAL or NM),
- multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text
- multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or
- multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.

There is currently no graphical interface to create these questions - you need to specify the question format using the text box or by importing them from external files.

Here is an example of the input text used to specify such a question:

Note that for multiple choice vertical or horizontal rendering there is no automatic numbering. It can added at each answer as shown here.

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}. The multichoice question can also be shown in the vertical display of the standard moodle multiple choice. {2:MCV:1. Wrong answer#Feedback for this wrong answer~2. Another wrong answer#Feedback for the other wrong answer~=3. Correct answer#Feedback for correct answer~%50%4. Answer that gives half the credit#Feedback for half credit answer} Or in an horizontal display that is included here in a table {2:MCH:a. Wrong answer#Feedback for this wrong answer~b. Another wrong answer#Feedback for the other wrong answer~=c. Correct answer#Feedback for correct answer~%50%d. Answer that gives half the credit#Feedback for half credit answer} A shortanswer question where case must match. Write moodle in upper case letters {1:SHORTANSWER_C:moodle#Feedback for moodle in lower case ~=MOODLE#Feedback for MOODLE in upper case ~%50%Moodle#Feedback for only first letter in upper case} Note that addresses like www.moodle.org and smileys :-) all work as normal: a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion} b) What grade would you give it? {3:NUMERICAL:=3:2} Good luck!

This example will appear to students as follows:

Question 1
Marks: --/13.00
This question consists of some text with an answer embedded right here
and right after that you will have to deal with this short answer and finally we have a floating point number .
The multichoice question can also be shown in the vertical display of the standard moodle multiple choice

| 1. Wrong answer |
| 2. Another wrong answer |
| 3. Correct answer |
| 4. Answer that gives half the credit |

Or in an horizontal display that is included here in a table

| a. Wrong answer |  |  | b. Another wrong answer |  |  | c. Correct answer |  |  | d. Answer that gives half the credit |

A shortanswer question where case must match. Write moodle in upper case letters
Note that addresses like www.moodle.org and smileys all work as normal:
a) How good is this?
b) What grade would you give it?
Good luck!