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.
- Interfaces are also listed on the Listing of Question Interface Types.
- Supported interface types in type include:
-
"MultipleChoice"
select a correct answer from a list "ShortAnswer"
enter an answer using an input field "MultipleShortAnswers"
enter multiple answers into input fields "ChooseMultiple"
select any number of items from a defined list "MultipleChoiceGrid"
group items into categories using a table "TrueFalse"
determine whether a question is true or false "NumericRange"
choose a value from within a range "Code"
write code to answer a question {}[[3]]"TextCompletion" type to fill in blanks {}[[3]]"SelectCompletion" choose items to fill in blanks {}[[3]]"DragCompletion" drag items from a pool to fill in blanks {}[[3]]"DragCategorize" group items into categories using a drag-and-drop interface {}[[3]]"ClickLocations" locate items on an image {}[[3]]"Sort" order a list using a drag-and-drop interface "SelectPair"
categorize an item "SelectColor"
choose a color - 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 allBasic Examples (2)Summary of the most common use cases
Scope (7)Survey of the scope of standard use cases
Create a grid for assigning an answer to each of several items:

https://wolfram.com/xid/0b8ew3va0y-8a9oyn

Make an interface for pairing two items:

https://wolfram.com/xid/0b8ew3va0y-bnnrv7

Create a multiple-choice question with assessment:

https://wolfram.com/xid/0b8ew3va0y-wxmwpd

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

https://wolfram.com/xid/0b8ew3va0y-us6aox

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

https://wolfram.com/xid/0b8ew3va0y-gxup99

Create a multiple-choice question with multiple correct answers:

https://wolfram.com/xid/0b8ew3va0y-qdvq2

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

https://wolfram.com/xid/0b8ew3va0y-5lvfg7

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