Cloze editor for Atto

From Carleton Moodle Docs

Revision as of 08:52, 14 June 2018 by Zhaiw (talk | contribs)


  • This is a very user-friendly contributed plugin for the Atto editor for Moodle branches 2.7 to 3.1.
  • You can now have the power of the Embedded Answers (Cloze) question type without having to memorize the cloze syntax.
  • A popup window will let you choose any one of the available question types to be embedded. A description of the question type is shown in your own language, for you to easily choose the best question type to use.
  • A 'Duplicate' button lets you easily and quickly write variants of a question, while keeping the distractors and feedback you had previously written, thus saving your valuable time !
  • The Embedded Answers (Cloze) question type is an extremely powerful question type, but its complicated syntax has discouraged many teachers from using it.

Issues found with Internet Explorer and Safari browsers

A user posted that when she uses Internet Explorer 11 (other versions are also affected), she cannot re-edit the syntax by marking the syntax/brackets and clicking on the cloze editor icon. The editor does not open in a new window (as it does when using Firefox). This means that while using IE she would have to do changes in the questions directly in the syntax, or edit a new question.This odd behaviour was also seen with Safari for Windows. This issue was fixed with version1.0 Beta2 (2016073107). Please update your plugin.

BTW: Many power Moodlers recommend using either Firefox, Chromium, Safari, Opera, or almost any other browser, but not Internet Explorer, as there are many known issues with IE reported in the Moodle tracker.



  • You will have the Atto editor for writing your new question:
  • Notice the following image where you must click on the Cloze icon.gif cloze plugin button (green square):


  • When you click on the cloze button inside the Atto toolbar, a popup window will let you choose any of the available question types. When you choose any question type, you will see a plain language description of what that question type does:


Note: The English language strings with the descriptions of the available question types are available for translation in AMOS. So, if you are using Moodle in a language other than English, you may see these descriptions in your home language

ES Cloze editor screen with add and cancel buttons.png

  • Select the question type you want to use and click on the 'Add' button:
  • If you had previoulsy blocked some text just before clicking on the cloze tool button, this text will be automatically inserted as the first correct answer.


  • Notice that in the image above, the previously blocked word 'elephant' (green rectangle) was automatically inserted as the first correct answer (blue rectangle).

Duplicate a question using the same distractors and feedback

  • There is a 'Duplicate' button on the chooser that loads the previous answers.
  • The form will then populate with the same data as the previous question you just recently made.
  • The advantage of having this is for producing several multichoice questions with the same distractors and feedback.
  • This is specially useful if you want to create a matching type question.


  • You can create several variants from one original question very quickly:

Cloze question plus two variants.png

A very simple English literature question example tutorial

  1. Find an interesting text. Let's use a nice poem, 'Hope is the Thing With Feathers', by Emily Dickinson.
“Hope” is the thing with feathers - 

That perches in the soul - And sings the tune without the words - And never stops - at all - And sweetest - in the Gale - is heard - And sore must be the storm - That could abash the little Bird That kept so many warm - I’ve heard it in the chillest land - And on the strangest Sea - Yet - never - in Extremity, It asked a crumb - of me.

  1. Copy the text from an available public domain quote.
  2. Make a new question using the cloze question type.
  3. Paste the poem inside the box for the question text.
  4. Select one interesting word, 'soul'.


  1. Then click on the Atto cloze tool and select a MULTICHOICE question.
  2. Write a couple of good distractors; eg, life.


  1. Now in the next sentence, select the word 'storm' in 'The sore must be the storm'.
  2. Now make a SHORTANSWER question.



  1. Save the question.
  2. Preview the question and check that t works as expected.


A very simple medical clinical case question tutorial

  1. Read the excellent publication 'Constructing Written Test Questions For the Basic and Clinical Sciences' by the (US) National Board of Medical Examiners. Please see specially Section II: Writing One-Best-Answer Questions for the Basic and Clinical Sciences (pages 32 to 43 ).
  2. We will use the following very short sentence as an example:
Acute intermittent porphyria is the result of a defect in the biosynthetic pathway for heme.
  1. With this sentence, we will create several variant questions using the cloze editor.
  2. We must first create a category named ´porphyria' in our Question bank. Here we will store our new questions.
  3. Then we will create the questions, one at a time.
  4. For the first question, we will highlight 'porphyria' and make a cloze SHORTANSWER question.
  5. In order to make the second variant question, we will highlight 'a defect' and select MULTICHOICE, using the distractor wrong options of 'an increase', 'an atrophy' and ' a toxic blockage'.
  6. For the third variant, we will highlight 'heme' and make another SHORTANSWER question.
  7. We have stored these three different (variant) questions inside the previously made category named ´porphyria'.
  8. In a quiz we will use only one random question from this category, so that our medical students will randomly get one variant question for this problem.
  9. The most common simple cheating is discouraged (a little), because if the students tell each other that 'the answer for the porphyria question is heme', it will not make sense to the students that were asked to choose a defect in the biosynthetic pathway.
  10. We proceed similarly for 50 more clinical problems and create 3 variants for each problem. All variant questions for each subject are stored inside the corrresponding subject category.
  11. We should, of course, use real clinical cases from our own archives and maybe add a few gross, micoscopic and radiographic images if appropiate.

... to be continued...

Available question types

MULTICHOICE Cloze multichoice.png

MULTICHOICE_H Type multichoice h.png

MULTICHOICE_V Type multichoice v.png

NUMERICAL Cloze numerical.png

SHORTANSWER Cloze shortanswer.png

The following question types with an S in their names denote that the question behavior shuffle option (randomize the order for displaying the answers) is on:

MULTICHOICE_S Type multichoice S.png

MULTICHOICE_HS Type multichoice hs.png

MULTICHOICE_VS Type multichoice vs.png

See also