Obojobo

Obojobo

  • Authors
  • Developers
  • GitHub

› Developers Section Topics

Getting Started

  • OboNode Structure
  • Text Content Conventions
  • Triggers and Actions

Misc Dev Topics

  • Obojobo Glossary
  • Question Selection Algorithm
  • Range Strings

Events Reference

  • Caliper Event Reference
  • Obojobo Event Reference

OboNode & Content Block Reference

  • ActionButton
  • Assessment
  • Assessment > rubric
  • Assessment > rubric > mod
  • Assessment > scoreAction
  • Break
  • Code
  • Content
  • Figure
  • Heading
  • HTML
  • IFrame
  • List
  • List > listStyle
  • List > listStyle > indent
  • Materia
  • MathEquation
  • MCAssessment
  • MCAssessment > MCChoice
  • MCAssessment > MCChoice > MCAnswer
  • MCAssessment > MCChoice > MCFeedback
  • Module
  • NumericAssessment
  • NumericAssessment > NumericChoice
  • NumericAssessment > NumericChoice > NumericAnswer
  • NumericAssessment > NumericChoice > NumericFeedback
  • Page
  • Question
  • QuestionBank
  • Table
  • Table > gridTextGroup
  • Text
  • textGroup
  • textGroup > textItem
  • textGroup > textItem > styleableText
  • textGroup > textItem > styleableText > styleList
  • trigger
  • trigger > action
  • YouTube

MCAssessment

Class: Chunk OboNode  Full Name: ObojoboDraft.Chunks.MCAssessment

This is the multiple choice portion of a question containing several answer choices.

Properties

Property Required Type Description
responseType no String Default: pick-one. Defines what type of multiple choice question this is. Possible values are enumerated below.
shuffle no Boolean Default: true. If false then the answer choices will be listed in document order. Otherwise answer choices will be shuffled.

Deprecated Properties

Property Required Type Description
correctLabels no String Default: Correct!|You got it!|Great job!|That's right! for default questions, Response recorded for survey questions. A | seperated list of labels to display when a non-assessment Question is answered correctly. One label will be selected at random. In Assessment Review this value is ignored ('Correct!' is always displayed instead for default questions, and 'Response recorded' is always displayed for survey questions).
incorrectLabels no String Default: Incorrect. A | seperated list of labels to display when a non-assessment Question is answered incorrectly. One label will be selected at random. This value is ignored for survey questions.

These properties in version 12.0.0 and earlier were defined on MCAssessment nodes, but now should be defined on Question nodes.

Supported Values for ‘responseType’

Value Description
pick-one Student must choose the single correct answer among the other incorrect answers. Answer choices are presented as a list of radio buttons. Question prompt reads “Pick the correct answer”.
pick-one-multiple-correct Student must choose one correct answer but more than one correct answer may be available. Answer choices are presented as a list of radio buttons. Question prompt reads “Pick one of the correct answers”.
pick-all Student is able to choose multiple answers and must select each correct answer without selecting an incorrect answer. Answer choices are presented as a list of checkboxes. Question prompt reads “Pick all of the correct answers”.

Supported Trigger Types

Action Type Description
onMount Fired when a node is added to the DOM
onUnmount Fired when a node is removed from the DOM

Required Children

One or more MCChoice nodes.

Variables Registered

None

Example

JSON

{
  "type": "ObojoboDraft.Chunks.MCAssessment",
  "id": "...",
  "content": {
    "responseType": "pick-all",
    "shuffle": false
  },
  "children": [
    {
      "type": "ObojoboDraft.Chunks.MCAssessment.MCChoice",
      "id": "...",
      "content": {
        "score": 100
      },
      "children": [ ... ]
    },
    {
      "type": "ObojoboDraft.Chunks.MCAssessment.MCChoice",
      "id": "...",
      "content": {
        "score": 0
      },
      "children": [ ... ]
    }
  ]
}

XML

<MCAssessment responseType="pick-all" shuffle="false">
  <MCChoice score="100">
    <!-- ... -->
  </MCChoice>
  <MCChoice score="0">
    <!-- ... -->
  </MCChoice>
</MCAssessment>
  • Properties
  • Deprecated Properties
    • Supported Values for ‘responseType’
  • Supported Trigger Types
  • Required Children
  • Variables Registered
  • Example
    • JSON
    • XML
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida