WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

QuestionObject [q,assess]

represents the question q and the corresponding assessment assess.

QuestionObject [assess]

derives a question from the assessment.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Generalizations & Extensions  
Options  
EpilogFunction  
ImageSize  
Applications  
Properties & Relations  
See Also
Related Guides
History
Cite this Page

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 all close 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:

Options  (2)

EpilogFunction  (1)

Use EpilogFunction in QuestionObject to record the results to a file:

See the recorded assessments:

Clean up the records:

ImageSize  (1)

Use ImageSize to set the width of a QuestionObject :

Also set the height:

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 (updated 2025).

Text

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

CMS

Wolfram Language. 2021. "QuestionObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. 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_2025_questionobject, author="Wolfram Research", title="{QuestionObject}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/QuestionObject.html}", note=[Accessed: 12-December-2025]}

BibLaTeX

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

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /