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

QuestionBank

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

Question banks contain one or more questions or other question banks with rules to describe how to select some subset of its children.

Properties

Property Required Type Description
choose no Integer or all Default: all. The number of children (1 or greater) to “choose” when selecting which children to display. If greater then the total number of children QuestionBank will choose all children. Invalid values will behave as all, and choose all children
select no String Default: sequential. Describes how the question bank “selects” children - Expected to be one of the following values:

Supported Values for select

Value Description
sequential Children will be selected in document order. If choose is less than the number of children then each attempt will start at the question after the last selected question.
random Children will be selected randomly.
random-unseen Children will be selected randomly. If choose is less than the number of children then each attempt will prioritize children that were not shown previously.

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 of QuestionBank and/or Question nodes.

Variables Registered

None

Example

JSON

{
  "type": "ObojoboDraft.Chunks.QuestionBank",
  "id": "...",
  "content": {
    "choose": 2,
    "select": "random"
  },
  "children": [...]
}

XML

<QuestionBank choose="2" select="random">
  <!-- ... -->
</QuestionBank>
  • Properties
    • Supported Values for select
  • Supported Trigger Types
  • Required Children
  • Variables Registered
  • Example
    • JSON
    • XML
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida