"TrueFalse" (Question Interface Type)
"TrueFalse" (Question Interface Type)
"TrueFalse"
Presents a single checkbox interface.
Properties
- In QuestionInterface["TrueFalse",props], props is an Association that supports the following keys:
-
"Prompt" None text asking the user a question - Additionally, options for RadioButtonBar are supported, including:
-
Appearance Automatic the overall appearance of the radio button bar Background Automatic background color to use
Corresponding AssessmentFunction
- "TrueFalse" is the automatically assigned interface type for an AssessmentFunction of the form AssessmentFunction[{True1,False0}].
Examples
Basic Examples (3)
QuestionObject[QuestionInterface["TrueFalse", <|"Prompt" -> "Do you believe in ghosts?"|>]]True or false question with assessment:
QuestionObject["Quaternions are generally represented in the form: a+b*i+c*j+d*k", AssessmentFunction[{True -> 1, False -> 0}]]Create a question with large elements for greater accessibility:
QuestionObject[QuestionInterface["TrueFalse", <|"Prompt" -> Style["Do lions live in the jungle?", 20], LabelStyle -> Directive[FontSize -> 20, Bold], Appearance -> {"Horizontal", Large}, ImageMargins -> 10|>], AssessmentFunction[{True -> 0, False -> 1}]]