Fill shape Deprecated

Fill shape (Deprecated)

Deprecated

This product feature has been deprecated.

Examples

{
    "response_id": "60036",
    "type": "fillshape",
    "stimulus": "[Some stimulus text here.]",
    "instant_feedback": true,
    "duplicate_responses": true,
    "shape": {
        "type": "circle",
        "parts": [
            { "value": "45" },
            { "value": "45" }, 
            { "value": "120" } 
        ]
    }, 
    "possible_responses": [
        { "value": "30" }, 
        { "value": "120" }, 
        { "value": "15" }, 
        { "value": "15" }, 
        { "value": "45" }, 
        { "value": "20" } 
    ],
    "validation": {
        "scoring_type": "exactMatch", 
        "valid_response": { 
            "method": "countByValue",
            "score": 1,
            "value": "90"
        }
    }
}

Attributes

  • 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.

  • 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.

  • type string

    Type of question being asked, e.g. 'association'

    Default: "fillshape"

  • 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"

  • ui_style.possibility_list_position string

    Defines where the possibility list sits relative to the input zone.

    Default: "bottom"

  • ui_style.show_labels boolean

    Define whether the value label of the possible response should be shown or hidden from the student.

    Default: true

  • 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

    The way in which marks are distributed for the question.

    • Exact Match - All parts of the question must be answered correctly to receive a mark.
    • Partial Match Per Response - Each correct response element will be awarded an individual score.
    • Partial Match - Each correct response element will be scored individually, and the overall question score will be divided between responses.

    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.method string

    Define the scoring method.

    Default: "countByValue"

  • validation.valid_response.value array

  • 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[ ].method string

    Define the scoring method.

    Default: "countByValue"

  • validation.alt_responses[ ].value array

    An array containing a single valid response or many responses.

  • validation.alt_responses[ ][ ].score number

    Score if the alternative response is correct.

    Default: 1

  • validation.alt_responses[ ][ ].method string

    Define the scoring method.

    Default: "countByValue"

  • validation.alt_responses[ ][ ].value array

    An array containing a single valid response or many responses.

  • duplicate_responses boolean

    When true the items from the possible_responses will be reusable infinite times.

    Default: false

  • shape object

    The data of the built shape.

  • shape.type string

    The main shape that will be displayed.

    Default: "circle"

  • shape.parts array

    Specify the value of each part on the shape that the student will drag and drop their responses into.

  • shape.parts[ ].value string

    Default: "0"

  • shape.parts[ ][ ].value string

    Default: "0"

  • shape.data_format string

    The data format used to compare responses for validation.

    Default: "fraction"

  • shape.row_count number

    Number of rows. This only applies for the Grid shape type. Values over 10 will be ignored.

    Default: 3

  • shape.column_count number

    Number of columns. This only applies for the Grid shape type. Values over 10 will be ignored.

    Default: 3

  • possible_responses array

    Configure the value and color for each possible response shape type that the student can select from.

  • possible_responses[ ].value string

    Default: "0"

  • possible_responses[ ].fill string

    Defines the color and opacity of the individual possible response.

  • possible_responses[ ].image object

    Define the background image for the current possible response. Only supported in the Rectangle and Grid shapes.

  • possible_responses[ ].image.src string

  • possible_responses[ ].shape string

    The shape of each possible response. Only supported in the Grid shape.

    Default: "rectangle"

  • possible_responses[ ][ ].value string

    Default: "0"

  • possible_responses[ ][ ].fill string

    Defines the color and opacity of the individual possible response.

  • possible_responses[ ][ ].image object

    Define the background image for the current possible response. Only supported in the Rectangle and Grid shapes.

  • possible_responses[ ][ ].image.src string

  • possible_responses[ ][ ].shape string

    The shape of each possible response. Only supported in the Grid shape.

    Default: "rectangle"

Was this article helpful?

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