Embedded answers (Cloze) question type (Moodle Quiz)
The embedded answer (Cloze) question type is dynamic and flexible, allowing for a variety of student interactions within a single quiz question. These include (but are not limited to):
- Dropdown menu: Students select the correct answer from a dropdown menu of options
- Short answer: Students type in their responses directly into the blank spaces
- Numerical: Students enter a numerical value in the blank (screenshot)
- Multiple choice: Students choose the correct answer(s) from a list of options
When authoring Cloze questions, a special syntax must be used to generate the questions, correct answers, and any feedback to be provided. Learning this syntax can be challenging at first, but there is a Cloze question editor embedded within the Atto editor in Moodle which simplifies the process. The path to access this will be detailed below.
Caution is required when generating this type of question, as student responses must exactly match the responses you have written into the question. Therefore, you need to consider alternative spellings, plurals and phrases to avoid discrepancies where a student’s answer may be correct, despite lacking the precise alignment with predetermined responses that is required.
Why?
The Cloze question type excels through its versatility, enabling a thorough assessment of students’ comprehension though various interactive elements. It promotes active engagement and critical thinking, while being adaptable across various subjects and learning contexts. This makes it a robust choice for assessment, though due to its complex syntax and specific answer criteria, it’s best reserved for the multifaceted questions described. For simpler queries featuring only one format, it’s best to use other, more specific question types, such as Multiple choice.
How?
To first create a Moodle Quiz activity, please refer to the Moodle Quiz article.
General information on how to add questions to a quiz and set up question banks can be found in the Introduction to Moodle Quiz question types article.
- From the Site settings menu, click More, then select Question Bank from the dropdown menu.
- In the question bank, click the Create a new question… button.
- Click the Embedded answers (Cloze) radio button and then click the Add button.
- Enter a descriptive name in the Question name text box.
Note: It is recommended to set up the quiz to not display question names. This option is set on the Quiz setup page. - Enter the text you would like to appear to students, including sub-questions, in the Question text box.
Note: See the Question format section below for more detailed instructions. - Click the Decode and verify the question text button. Moodle will check the syntax of your question and output any errors that need to be addressed.
- Once you have rectified any errors, click the Save changes button.
Note: You can also preview your question by clicking the Save changes and continue editing button, then click the Preview button.
When creating a Cloze question in Moodle you can use the question builder available in the text editor. For an in-depth guide on using this editor, please refer to the Moodle Support Documentation – Cloze editor for Atto.
To access the editor, click the Cloze editor button in the Atto toolbar:This editor is a good place to start, but to fully utilise the flexibility of the Cloze question type it is helpful to understand the structure of the question. Every Cloze sub-question follows the same simple structure:
Sub-questions must start with {
Define the weight of the sub-question (which can be zero). This is used for the calculation of the overall question grade.
Enter the question type with a : before and after.
This example uses the Multiple choice question type, but there are other types available, as outlined in the question types section below.
Enter all possible responses (both correct and incorrect) separated by a ~
Add an = immediately before an answer to in indicate it is correct.
Enter a # to mark the beginning of a feedback message. You can add feedback to all or some of the possible answers.
Finally, as shown above, a sub-question must always be closed with }.
Example question
What is the capital of Australia? {1:MULTICHOICE:~Sydney#Sydney is the most populated city, but not the capital~=Canberra#Correct~Melbourne#Try again}
Editing screen
Question preview
There are three types of sub-questions that can be included in a Cloze question:
- Multiple choice/multi response
- Short answer
- numerical
Multiple choice questions
There are several types of Multiple choice questions available in Cloze questions. Below is a table indicating the functionality and format of each type.
Key Word | Alignment | Answers Shuffled | Number Answers Allowed |
MULTICHOICE | Drop-down list | No | Single correct answer |
MULTICHOICE_H | Horizontal list | No | Single correct answer |
MULTICHOICE_V | Vertical list | No | Single correct answer |
MULTICHOICE_S | Drop-down list | Yes | Single correct answer |
MULTICHOICE_HS | Horizontal list | Yes | Single correct answer |
MULTICHOICE_VS | Vertical list | Yes | Single correct answer |
MULTIRESPONSE | Vertical list | No | Multiple answers allowed |
MULTIRESPONSE_H | Horizontal list | No | Multiple answers allowed |
MULTIRESPONSE_S | Vertical list | Yes | Multiple answers allowed |
MULTIRESPONSE_HS | Horizontal list | Yes | Multiple answers allowed |
Short answer questions
This question type allows a short text input that is graded against one or more model answers.
SHORTANSWER - Case is not important
SHORTANSWER_C - Case must match model answers
- A Short answer sub-question can have more than one correct answer indicated by an =
e.g. {1:SHORTANSWER:~=this answer is correct~=this answer is also correct} - Feedback can be provided for all or some of the possible answers; start feedback with a #
- For information about awarding partial marks for a partially correct sub-question, please refer to the Moodle Support Documentation – Embedded Answers (Cloze) question type.
Numerical questions
From the student’s perspective, this sub-question type looks the same as a short-answer question. A numerical question accepts a numerical text input that is graded against one or more model answers. The benefit of using this question type for numerical input over a Short answer is that it can check the answer with some tolerances. Examples of some possible tolerances include:
- if the correct answer is 0.5 the following answers would also be marked correct: .5 0.500 0,5 0,5
- if the correct answer is 6.1 and a tolerance of ±0.1 has been defined, acceptable answers are those between 6.0 and 6.2
The structure of a numerical question is very similar to the other question types:
- Open the question with {
- Define the weight of the question
- Define the question type ‘:NUMERICAL:’
- Add one or more correct answers and define tolerances
- Define the correct answer with ~=
- The correct answer should be a numerical value – e.g. ~=2.9
- Add the tolerance (optional) separate from answer with : - e.g. for correct answer 2.9 with tolerance of ±0.2 type ~=2.9:0.1
Numerical question examples:
Related information
-
Moodle Documentation – Embedded answers (Cloze) question type | External resource