Help and Support (Staff)

This is one of many help and support pages that are available about the University of Nottingham's Moodle online learning environment. If you have any questions or queries concerning Moodle then contact information is at the bottom of this one-page sheet. Please browse or use the SEARCH box below.

Go to Moodle

Page tree
Skip to end of metadata
Go to start of metadata

Moodle Help & Support 

 

This refers to Moodle 3.6 from July 2019 onward

How to: Create 'Embedded answers (Cloze)' questions in Moodle Quiz   

This is an advanced question type that requires you to learn some basic syntax associated with it.  This question type allows you create an interactive question with 'fill in the blanks', drop-down and numerical responses.

Add an Embedded answers (Cloze) question

  1. Go into your quiz
  2. Click on the Edit quiz button
  3. Click on the Add dropdown and select  a new question
  4. Select 'Embedded answers (Cloze)' question and click on the Add button
  5. If appropriate, select the correct category of questions that you are saving this one to.
  6. Give your question a Question name
  7. Write your question with the appropriate syntax into the Question text field
  8. Click Save changes

The syntax

  • 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 drop-down 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:  In the MULTICHOICE question type the answers are automatically scrambled.

Writing the syntax into a string of commands

e.g. a short text answer that is not case-sensitive would be written as:  {1:SA:=paddling}  This would be shown as a small text box where the student has to write their response.

e.g. a multichoice answer would be written as:  {1:MC:=construct an elaborate colourful nest~sing in a high pitched tune to the female}  This would be shown as a drop-down box where the student selects one of the answers.

e.g. a numerical answer would be written as:  {0:NM:=-0.497:0.01#wrong}  This would be shown as a text box where the student has to write a numerical response.

  1. all question items within a cloze-type question are coded inside curled braces { }

  2. the number which appears between the opening brace and the colon {1: is the number of points awarded for that answer

  3. after the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL.  Note:  The question type must be written in capitals

  4. a correct answer is preceded with the equal sign = or a percentage (usually %100%).  A wrong answer is preceded with nothing or a percentage (usually %0%)

  5. all answers except the first one are separated from one another by the tilde sign ~

  6. answers can be followed by an optional feedback message, preceded with the # sign.  Note:  The feedback message and the correct answer are displayed in a small popup window

Note:  You cannot use html code in the question.  If you are using a NUMERICAL question and need to enter sub or superscript into the question use the appropriate buttons in the toolbar:  .  You can however use html in the feedback aspect of the string e.g. #See this picture:<br><img src=Something.gif />}

Similar tutorials

The following other resources are also relevant to this topic: