"MultipleShortAnswers" (Question Interface Type)
"MultipleShortAnswers" (Question Interface Type)
"MultipleShortAnswers"
creates an interface that accepts multiple answers.
Properties
- In QuestionInterface["MultipleShortAnswers",props], props is an Association that supports the following keys:
-
"Prompt" None text asking the user a question "FieldType" Expression type for input field
Corresponding AssessmentFunction
- "MultipleShortAnswers" is the automatically assigned interface type for an AssessmentFunction of the form AssessmentFunction[{patt},<|"ElementwiseAssessment"True|>] with a test pattern patt.
Examples
open all close allBasic Examples (2)
Create a question to which students can provide multiple answers:
QuestionObject[QuestionInterface["MultipleShortAnswers", <|"Prompt" -> "List the vowels", "FieldType" -> String, FieldHint -> "Input a vowel"|>],
SubsetQ[{"a", "e", "i", "o", "u", "y"}, #]&
]"MultipleShortAnswers" is automatically chosen for elementwise assessment against a pattern:
QuestionObject[
"Name as many prime numbers as you can",
AssessmentFunction[_ ? PrimeQ, <|"ListAssessment" -> "SeparatelyScoreElements"|>]]