QuestionObject

QuestionObject[q,assess]

represents the question q and the corresponding assessment assess.

QuestionObject[assess]

derives a question from the assessment.

Details

  • A QuestionObject is displayed as an interactive form in which answers are submitted and assessed.
  • In QuestionObject[q,assess], q accepts the following form:
  • "question"text prompt asking a question
  • The assessment assess accepts the following forms:
  • AssessmentFunction[]assessment function
    <||>Association defining a valid key for AssessmentFunction
    ftest function
  • The test function f should be a function that takes the answer and returns True or False based on the correctness.

Examples

open allclose all

Basic Examples  (2)

Define a multiple-choice question:

Create a true/false question:

Scope  (3)

Create a categorization question:

Create a multiple-choice grid question:

Create a question where multiple answers may be chosen:

Properties & Relations  (1)

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

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.

BibTeX

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

BibLaTeX

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

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