Cloze with drop down clozedropdown

Cloze with drop down (clozedropdown)

Allows the learner to select answers to text prompts from drop down menus.

The cloze with drop down Question is referenced by its type in the code, which is "clozedropdown".

Examples

{
    "response_id": "60013",
    "type": "clozedropdown",
    "stimulus": "Select the correct response for each blank.",
    "template": "<p>&ldquo;It&rsquo;s all clear,&rsquo; he {{response}}. &ldquo;Have you the chisel and the bags? Great Scott! Jump, Archie, jump, and I&rsquo;ll swing for it!&rsquo;</p><p>Sherlock {{response}} had sprung out and seized the {{response}} by the collar. The other dived down the hole, and I heard the sound of {{response}} cloth as Jones clutched at his skirts. The light flashed upon the barrel of a revolver, but Holmes&rsquo; {{response}} came down on the man&rsquo;s wrist, and the pistol {{response}} upon the stone floor.</p>",
    "instant_feedback": true,
    "possible_responses": [
        ["whispered", "sprinted", "joked"],
        ["Homes", "Holmes"],
        ["acquaintance", "intruder", "shopkeeper"],
        ["burning", "departing", "rending", "broken"],
        ["revolver", "hunting crop"],
        ["rattled", "clinked", "spilt"]
    ],
    "validation": {
        "scoring_type": "partialMatch",
        "valid_response": {
            "value": ["whispered", "Holmes", "intruder", "rending", "hunting crop", "clinked"]
        }
    }
}

Attributes

  • type string

    Defines the Question type to be rendered.

    Must be set to "clozedropdown" in this case.

  • is_math boolean

    Set to true to have LaTeX or MathML contents to be rendered with mathjax.

    Default: false

  • metadata object

    Object containing additional information about the question.

  • metadata.distractor_rationale string

    Used to display individual response feedback/rationale to the student.

  • metadata.rubric_reference string

    A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity

  • metadata.sample_answer string

    A sample answer to be displayed on the Learnosity Reports API. HTML is supported.

  • metadata.acknowledgements string

    References for any text passages, documents, images etc. used in the question.

  • metadata.distractor_rationale_response_level array

  • stimulus string

    The question stimulus. This can include text, tables, images, resources and LaTeX entered via the Math Editor.

  • stimulus_review string

    HTML/Text content displayed only in review state rendered above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state.

  • instructor_stimulus string

    HTML/Text content displayed when showInstructorStimulus is set to true on the activity. Supports embedded Feature <span> tags.

  • ui_style object

    Object used to control different aspects of the UI

  • ui_style.fontsize string

    Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'.

    Default: "normal"

  • ui_style.validation_stem_numeration string

    Numeration character to be displayed to the left of the validation label.

    Default: "number"

  • feedback_attempts number

    If instant_feedback is true, this field determines how many times the user can click on the 'Check Answer' button. 0 means unlimited.

    Default: 0

  • instant_feedback boolean

    Flag to determine whether to display a 'Check Answer' button to provide instant feedback to the user.

    Default: false

  • validation object

    In this section, configure the correct answer(s) for the question.

  • validation.allow_negative_scores boolean

    Negative scores will be normalised to zero by default. Allowing negative scores, on the other hand, means that the score can drop below zero when penalties are applied.

    Default: false

  • validation.penalty number

    Value indicating the marks deducted for an incorrect response.

    Default: 0

  • validation.min_score_if_attempted number

    Positive value indicating the minimum score if a student attempted the question.

    Default: 0

  • validation.scoring_type string

    Defines the scoring approach used. Possible options:
    'exactMatch': Exact Match - Entire response must match exactly
    'partialMatchV2': Partial Match - A relative part of the score will be given for each correct response area
    'partialMatch': Partial Match per response - Cumulative Score value will be given for each correct response area

    Default: "exactMatch"

  • validation.unscored boolean

    When enabled, this option will remove all scoring from the question. This is useful for creating practice questions.

    Default: false

  • validation.valid_response object

    An object containing the valid response score and value.

  • validation.valid_response.score number

    Score awarded for the correct response(s).

    Default: 1

  • validation.valid_response.value array[string]

    An array containing all of the correct responses for each drop down (or {{response}}) in the template in order of appearance.

  • validation.automarkable boolean

    Defines whether the question will be marked automatically, or must be marked manually.

    Default: true

  • validation.alt_responses array

    Add an alternate response if there is more than one correct overall solution to a question.

  • validation.alt_responses[ ].score number

    Score if the alternative response is correct.

    Default: 1

  • validation.alt_responses[ ].value array

    An array containing all of the correct responses for each drop down (or {{response}}) in the template in order of appearance.

  • response_container object

    Controls the presentation of all drop down menus.

  • response_container.height string

    The default height of all drop down menus, in pixels.

    Example: 100px

  • response_container.width string

    The default width of all drop down menus, in pixels.

    Example: 150px

  • response_container.placeholder string

    The placeholder text for all drop down menus to be shown when the learner has not selected an answer.

  • response_containers array[object]

    The individual presentation settings for specific drop down menus, in order of appearance.

  • response_containers[ ].height string

    The height of the drop down menu, in pixels.

    Example: 100px

  • response_containers[ ].width string

    The width of the drop down menu, in pixels.

    Example: 150px

  • response_containers[ ].placeholder string

    The placeholder text for the drop down menu to be shown when the learner has not selected an answer.

  • response_containers[ ].aria_label string

    The custom ARIA label text for the drop down menu to be read by screen readers.

  • description string

    Deprecated See stimulus_review.
    Description of the question and its context to be displayed. It supports HTML entities.

  • template string

    The text prompt and drop down menus for learners to respond to.

  • possible_responses array[array]

    An array containing each drop down menu and its possible responses, in order of appearance.

  • possible_responses[ ] array[string]

    An array containing the possible responses for the drop down menu.

  • shuffle_options boolean

    Use this to shuffle clozedropdown possible responses list order.

    Default: false

  • case_sensitive boolean

    Controls whether to validate the differences in capital letters between possible answers in the same drop down menu.

    For example, when set to true, the values for "HTML" and "html" will be considered as two different values and will be scored differently. By default, both values would be considered identical for scoring.

    Default: false

Response format

The data returned in the response format for this Question is the response(s) the learner selected from the drop down menu(s) when answering the Question.

Response format examples

{
    "value": [
        "whispered",
        null,
        "intruder",
        null,
        null,
        "clinked"
    ],
    "type": "array",
    "apiVersion": "v2.222.0",
    "revision": 1,
    "feedbackAttemptsCount": 1
}

Response attributes

  • value array[string|null]

    The drop down menu response(s) selected by the learner, in order of appearance in the text prompt.

    The value null indicates that the learner has not selected an option.

  • type string

    Informs the scoring engine about what kind of data to expect in the values entered by the learner.

    Must be set to "array".

  • apiVersion string

    The version of the Questions API that returned this response.

  • revision numeric

    Keeps track of the number of Question attempts and submissions, meaning, how many times the learner answered the Question and submitted it.

  • feedbackAttemptsCount numeric

    Keeps track of the number of times the learner has clicked on "Check Answer".

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.