"ChooseMultiple" (Question Interface Type)
"ChooseMultiple" (Question Interface Type)
"ChooseMultiple"
presents multiple values from which multiple can be chosen.
Properties
- In QuestionInterface["ChooseMultiple",props], props is an Association that supports the following keys:
-
"Prompt" None text asking the user a question "Choices" required list of choices - Additionally, options for CheckboxBar are supported, including:
-
Appearance Automatic the overall appearance of the radio button bar Background Automatic background color to use
Corresponding AssessmentFunction
- Except for limited special cases, "ChooseMultiple" is the automatically assigned interface type for an AssessmentFunction of the form AssessmentFunction[{k11,k20,k31,…},<|"ListAssessment""SeparatelyScoreElements"|>] with multiple defined keys and multiple correct keys.
- The values in the assessment function can be True and False or numeric values, in which case positive values are interpreted as correct.
Examples
open all close allBasic Examples (2)
Create a choose multiple interface:
QuestionObject[QuestionInterface["ChooseMultiple", <|"Choices" -> {"Painting", "Swimming", "Cooking", "Reading"}, "Prompt" -> "Select activities you are interested in:"|>]]Choose multiple with assessment:
QuestionObject[QuestionInterface["ChooseMultiple", HoldForm[Sqrt[4]]], AssessmentFunction[{-2 -> True, 0 -> False, 2 -> True, 1 -> False}, <|"ListAssessment" -> "SeparatelyScoreElements"|>]]Scope (1)
Create a "ChooseMultiple" question with customized appearance using the options of CheckboxBar:
QuestionObject[QuestionInterface["ChooseMultiple", <|"Prompt" -> "Select prime numbers", Appearance -> {Small, "Horizontal" -> {Automatic, 7}}, Method -> "Active"|>], AssessmentFunction[(# -> PrimeQ@#)& /@ DeleteCases[Range[101, 141], _ ? EvenQ], <|"ListAssessment" -> "SeparatelyScoreElements"|>]]See Also
QuestionInterface QuestionObject
Question Interface Types: MultipleChoice MultipleChoiceGrid