Cloze Question
A cloze question (also known as fill-in-the-blanks) presents learners with a passage of text containing one or more blank spaces. Learners must fill in the correct words or phrases to complete the passage.
Features
- Multiple blank modes: Choose from dropdown, text input, or drag-and-drop
- Flexible configuration: Each blank can have its own correct answer and distractors
- Customizable sizing: Control the width of each blank independently
- Text matching options: Configure case sensitivity and whitespace trimming for text input mode
- Word bank: Drag-and-drop mode automatically creates a shuffled word bank from correct answers and distractors
- Immediate or deferred feedback: Optional check button for manual answer submission
Blank Modes
Dropdown
Learners select from a dropdown menu containing the correct answer and distractors. The options are automatically shuffled for each blank.
Text Input
Learners type their answers directly. You can configure whether answers are case-sensitive and whether to trim whitespace.
Drag and Drop
Learners drag words from a word bank into the blanks. The word bank automatically includes all correct answers and distractors, with duplicates removed.
Usage
- Add the widget to your step
- Write your passage using
[[1]],[[2]], etc. to mark blank positions - Configure each blank:
- Set the correct answer
- Add distractor options (incorrect choices)
- Choose the blank width (small, medium, large, or extra large)
- Choose the blank mode (dropdown, text input, or drag-and-drop)
- Set feedback messages for correct and incorrect responses
- Configure scoring by setting the max score value
Example
The process of photosynthesis converts [[1]] and water into [[2]] and oxygen.
Blank 1: carbon dioxide (distractors: nitrogen, helium)
Blank 2: glucose (distractors: protein, lipids)Variables Published
Like all items, the Cloze Question publishes:
attempted– Whether the learner has attempted the questioncorrect– Whether all blanks are filled with correct answersscore– Current score (maxScore if correct, 0 otherwise)answer– Learner’s responses for each blank
Customization Options
- Font Size: Small, medium, large, or extra large
- Blank Width: Individual width settings per blank (8ch, 14ch, 20ch, or 28ch)
- Text Input Mode:
- Case sensitive matching (yes/no)
- Trim whitespace (yes/no)
- Check Button: Enable/disable and customize button text
- Feedback: Custom messages for correct and incorrect responses