Embedded answer (Cloze) quiz question
  • 11 Sep 2024
  • 1 minute to read

Embedded answer (Cloze) quiz question


Article summary

Embedded Cloze questions are used to combine different question types into one question (such as multiple choice, missing words, short answer, numerical etc).

Questions are added using specific code or question text formats. The Totara Academy has a useful resource providing a list of the text formats for each question type.

Note that the Embedded answer (Cloze) question type is not compatible with the Weka editor. Set your text editor preference to Atto in order to add and configure Cloze questions (you can set your preference to the Weka editor afterwards).

Here is an example of a multiple choice question using the Cloze question type:

Example multiple choice question in the Cloze format.

If the correct answer within an embedded question contains the symbols  } # ~ / " or \ you will have to remove or escape them from the Cloze code by entering a \ in front of each character.

The { shouldn't be escaped as this can be vital in getting TeX expressions to work.

In the feedback ~ and } must be escaped otherwise they will be interpreted as the next answer or end of the short answer section respectively.

Quotation signs should be avoided. Instead use the HTML entity: & quot; (without the space between & and quot;).

When using mathematical symbols the \ used in TeX expressions can be problematic. Unicode characters can be used to avoid any issues.

  • Export questions in GIFT or Totara XML formats to import them into a lesson activity.
  • Copy and paste text from a PDF or text file into the question content area. This strips out additional formatting and any hidden code which other editing programs can insert.

There are two courses in the Totara Academy about using quizzes in Totara Learn, Getting started with quizzes and Advanced quiz Using these courses you can learn more on how to use these features, see best practice, and give it a go yourself.


Can't find what you're looking for? Contact us at documentation@totara.com. Alternatively, book a call to have a chat about your Totara platform with a dedicated Customer Success Manager.

© Copyright 2024 Totara Learning Solutions. All rights reserved. Some content originally obtained via GPLv3 license and continues to be available under GPLv3. All other content is the sole copyright of Totara Learning Solutions. 

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.