QuestionInterface

QuestionInterface[type,p1s1,p2s2,|>]

defines an interface for a QuestionObject using the given type and properties pi with settings si.

Details

  • QuestionInterface is typically used within QuestionObject[QuestionInterface[],] to directly specify an interface.
  • Supported interface types in type include:
  • "ChooseMultiple"select any number of items from a defined list
    "Code"write code to answer a question
    "MultipleChoice" select a correct answer from a list
    "MultipleChoiceGrid"group items into categories using a table
    "NumericRange"choose a value from within a range
    "SelectColor"choose a color
    "SelectPair"categorize an item
    "ShortAnswer"enter an answer using an input field
    "TrueFalse"determine whether a question is true or false
  • The supported properties pi differ for each interface type. Common properties include:
  • "Prompt"question or prompt shown with the interface
    "MaxAnswers"maximum answers allowed for elementwise assessments
    "MinAnswers"minimum answers allowed for elementwise assessments
  • QuestionInterface[type,"prompt"] is equivalent to QuestionInterface[type,<|"Prompt""prompt"|>].
  • In QuestionObject[QuestionInterface[type,props],assessment], properties not included in props are inferred from assessment whenever possible.

Examples

open allclose all

Basic Examples  (2)

Create a multiple-choice poll question:

Create a free-form poll question:

Scope  (7)

Create a grid for assigning an answer to each of several items:

Make an interface for pairing two items:

Create a multiple-choice question with assessment:

Create a true/false question with a test for assessment:

Create a quiz with a color as an input and assessment using tolerance:

Create a multiple-choice question with multiple correct answers:

Create a slider-based question interface with assessment using a test function:

Generalizations & Extensions  (1)

Use arbitrary content in the prompt:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_questioninterface, author="Wolfram Research", title="{QuestionInterface}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/QuestionInterface.html}", note=[Accessed: 03-July-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_questioninterface, organization={Wolfram Research}, title={QuestionInterface}, year={2021}, url={https://reference.wolfram.com/language/ref/QuestionInterface.html}, note=[Accessed: 03-July-2022 ]}