QuestionObject

QuestionObject[q,assess]

represents the question q and the corresponding assessment assess.

QuestionObject[assess]

derives a question from the assessment.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Define a multiple-choice question:

Create a true/false question:

Scope  (17)

Create a categorization question:

Specify a test function to assess the answer:

Create a question where multiple answers may be chosen:

Create a "ShortAnswer" question for assessing a free-form textual answer:

Create a "MultipleChoice" question for selecting a single correct answer from a list of choices:

Create a "MultipleShortAnswers" question to assess many free-form answers:

Create a "TextCompletion" question to assess free-form fill-in-the-blank answers:

Create a "SelectCompletion" question to select from a set of predefined answers for each blank:

Create a "DragCompletion" question to fill blanks from a common pool of predefined answers:

Create a "ClickLocations" question for locating items in a photo:

Create a "Sort" question for ordering items in a list:

Create a "NumericRange" question for choosing a value within an interval:

Create a "SelectPair" question for matching one item with a category:

Create a "SelectColor" question for assessing a color choice:

Create a "MultipleChoiceGrid" question for categorizing multiple items into common categories by selecting radio buttons:

Create a "DragCategorize" question for categorizing multiple items into common categories by dragging the items:

Create a "Code" question for assessing whether submitted code is equivalent to the code in the answer key:

Generalizations & Extensions  (1)

Create a test function that returns an AssessmentResultObject where the score is a function of the answer:

Applications  (1)

Define a function that generates random versions of a question:

Generate two versions of the question:

Create an equivalent QuestionGenerator:

Properties & Relations  (2)

When an interface type cannot be inferred from the assessment, an input field is used:

When no assessment is defined, the submit button is omitted:

Wolfram Research (2021), QuestionObject, Wolfram Language function, https://reference.wolfram.com/language/ref/QuestionObject.html.

Text

Wolfram Research (2021), QuestionObject, Wolfram Language function, https://reference.wolfram.com/language/ref/QuestionObject.html.

CMS

Wolfram Language. 2021. "QuestionObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuestionObject.html.

APA

Wolfram Language. (2021). QuestionObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuestionObject.html

BibTeX

@misc{reference.wolfram_2024_questionobject, author="Wolfram Research", title="{QuestionObject}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/QuestionObject.html}", note=[Accessed: 17-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_questionobject, organization={Wolfram Research}, title={QuestionObject}, year={2021}, url={https://reference.wolfram.com/language/ref/QuestionObject.html}, note=[Accessed: 17-December-2024 ]}