Search Google Appliance

Information Technology

Embedded Answers (Cloze) Questions

Embedded answers (Cloze) questions consist of a passage of text (in Moodle format) that can have various answers embedded within it, including multiple choice, short answers and numerical answers. This format utilizes specific key words and characters which Moodle then translates into the appropriate question.

Example of an embedded answer [cloze] question with a short answer response:

Example embedded answer question

Note: For multi-choice answers, a new Moodle question type, Select Missing Words, is easier to set up and lets you include more than one drop-down in a question. See Select Missing Words Questions in Moodle.

Question Set-Up

  1. In the menu bar at the top of your course page, select the Course Management button (gear icon Course Management button looks like 3 gears ). The Course Management panel will open.

  2. On the Course Management panel, under Question bank select Question bank. The Question bank page will open.

  3. On the Question Bank page, select a Category in which to save the question, and click Create a new question.... The Choose a question type to add pop-up will open.

  4. In the Choose a question type to add pop-up, select Embedded answers (cloze). A description of the question type displays. Click Add. The Adding an Embedded answers (Cloze) question page will open.

  5. On the Adding an Embedded answers (Cloze) question page, give the question a descriptive name—this makes it easy to identify it in the question bank. The question name is not visible to students.

  6. In the Question text field enter the formatted passage of text. For instructions and examples see Format Question Text below.

  7. Click Save changes. The question editor will test whether the question is formatted correctly. 

    • If formatted correctly, the question will be saved to the category and you'll be returned to the Question bank

    • If formatted incorrectly, an alert will appear on the page. Edit the Question text entry and click Save changes again.

Format Question Text

Questions consist of a passage of text (in Moodle format) that has various sub-questions embedded within it. To use a specific question type, use one of the following keywords:

  • 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
  • Multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons

Note: For multi-choice answers, a new Moodle question type, Select Missing Words, is easier to set up and lets you include more than one drop-down in a question. See Select Missing Words Questions in Moodle.

The structure of each cloze sub-question is identical, and the sub-question is included in-line within the question text. To write a sub-question:

  1. Enter { to start the cloze sub-question with a bracket.
  2. Enter 1 define a grade for each cloze by a number (optional). This is used for calculation of the overall question grade.
  3. Enter :SHORTANSWER: to define the type of cloze sub-question. Definition is bounded by ':'.
  4. For multiple choice questions, use ~ as a separator between answer options.
  5. Enter = to mark a correct answer.
  6. (Optional) Enter # to mark the beginning of a feedback message.
  7. Enter } to close the cloze sub-question.

Question Text Examples:

Short Answer Question:

"Bigfoot, also known as {1:SHORTANSWER:=Sasquatch}, is the name of a phenomenon which has polarized people around the world, being either the product of vivid imagination or a creature that has somehow avoided close observation or capture by man."

As seen in a quiz:

short answer question

Multi-choice Question:

"Bigfoot, also known as {1:MULTICHOICE:=Sasquatch#Correct ~Nessie#Wrong ~Bill#Wrong }, is the name of a phenomenon which has polarized people around the world, being either the product of vivid imagination or a creature that has somehow avoided close observation or capture by man."

As seen in a quiz:

multichoice