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

NumericAssessment > NumericChoice

Class: Chunk OboNode  Full Name: ObojoboDraft.Chunks.NumericAssessment.NumericChoice

A single answer choice in a multiple choice question containing the contents of the answer and optional feedback. Feedback is not displayed in an Assessment Attempt Quiz but is displayed outside Assessment or in Assessment Review (when full Assessment Review is being shown).

Properties

Property Required Type Description
score Required Integer 0 or 100: Represents the correctness of this answer choice - i.e. A correct answer should have a score of 100 and incorrect answers a score of 0.

Partial credit is not supported - values must be either 0 or 100, not a value in-between. A future release may allow for partial credit.

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

Expects one or two children in order:

  1. REQUIRED: An NumericAnswer OboNode.
  2. An NumericFeedback OboNode. This is not displayed in an Assessment Attempt Quiz but is displayed outside Assessment or in Assessment Review (when full Assessment Review is being shown).

Variables Registered

None

Example

JSON

{
	"type": "ObojoboDraft.Chunks.NumericAssessment.NumericChoice",
	"id": "...",
	"content": {
		"score": 100
	},
	"children": [
		{
			"type": "ObojoboDraft.Chunks.NumericAssessment.NumericAnswer",
			"id": "...",
			"content": {
				"answer": "4",
				"requirement": "exact"
			}
		}
	]
}

XML (with OboHTML)

<NumericChoice score="100">
	<NumericAnswer answer="4" requirement="exact" />
</NumericChoice>
  • Properties
  • Supported Trigger Types
  • Required Children
  • Variables Registered
  • Example
    • JSON
    • XML (with OboHTML)
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida