NCLEX

Choice matrix – NCLEX Scoring (nclex)

NCLEX Scoring allows learners to select answers from a table of prompts and answers. Within each column, correct and incorrect selections (including penalty points) are tallied, with scores not dropping below zero. The final score is the sum of the tallies across all columns.

The choice matrix NCLEX Scoring Question is referenced by its type in the code, which is "nclex".

Examples

{
    "response_id": "60028",
    "type": "nclex",
    "stimulus": "[This is the stem NCLEX]",
    "options": ["Pneumonia", "UTI", "Influenza"],
    "stems": ["Fever", "Confusion", "Body soreness", "Cough and sputum", "Shortness of breath"],
    "validation": {
        "scoring_type": "nclexScoringByColumn",
        "valid_response": {
            "score": 1,
            "value": [
                [0, 1],
                [0, 4],
                [2, 3]
            ]
        }
    },
    "multiple_responses": true,
    "ui_style": {
        "type": "table",
        "horizontal_lines": false
    },
    "instant_feedback": true
}

Attributes

  • type string

    Defines the Question type to be rendered.

    Must be set to "nclex" 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

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

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

    Choose a presentation type for the table.

    Default: "table"

    Possible values

    • "inline" - prompts are inside the table beside each option.
    • "table" - prompts are shown in the column header.
  • ui_style.stem_width string

    The width of the stem column, can be px, em or percentage.

    Example: 12px

  • ui_style.option_width string

    The width of the possible response columns, can be px, em or percentage.

    Example: 12px

  • ui_style.stem_title string

    The title for the prompt column.

  • ui_style.option_row_title string

    An additional title that appears above the response columns.

  • ui_style.horizontal_lines boolean

    Controls whether horizontal lines should be shown underneath each prompt row.

    Default: "false"

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

    Value indicating the marks deducted for an incorrect response.

    Default: 1

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

    Default: "nclexScoringByColumn"

    Possible values

    • nclexScoringByColumn - In each individual column, correct responses and incorrect responses (including penalty points) are tallied, with a floor score of 0. The overall score is the aggregate of all columns.
  • 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[array]

    Defines the correct answers corresponding to the correct response indexes in the array.

    Default: []

  • validation.valid_response.value[ ] array[number]

    The correct answer(s) as indexes for the column.

  • validation.automarkable boolean

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

    Default: true

  • options array[string]

    Defines the response options for each column in the table.

    Example: ["Pneumonia", "UTI", "Influenza"]

  • stems array[string]

    Defines the prompts for each row in the table.

Response format

The data returned in the response format for this Question is an array of integers, which represent the choices that the learner made for each column.

Response format examples

{
    "value": [
        [0, 3],
        [1, 4],
        [2]
    ],
    "type": "array",
    "apiVersion": "v2.173.0",
    "revision": 1,
    "feedbackAttemptsCount": 2
}

Response attributes

  • value array[array[number]]

    Contains the choice(s) that the learner made for each column in the table, as array indexes.

    In the example above, the learner chose the first and fourth option in the first column, the second and fifth option in the second column, and the third option in the third column.

    Array of arrays of one or more integers representing the response(s) that should be recorded for each of the sub-questions.

  • type string

    Informs the scoring engine about what kind of data to expect in the values entered by the student. For this Question type, you must always supply a string for this attribute with the value "array".

  • apiVersion string

    The version of the Questions API that returned this response.

  • revision numeric

    Keeps track of the number of Question attempt submissions, i.e. how many times the student answered the Question and submitted it.

  • feedbackAttemptsCount numeric

    Keeps track of the number of feedback attempts.

Was this article helpful?

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