QuestionSelector
QuestionSelector[{qo1,qo2,…}]
represents a list of questions from which one of the question objects qoi can be randomly selected.
QuestionSelector[CloudObject[…]]
represents a cloud-deployed question selector.
Details and Options
- QuestionSelector[…][] returns the selected QuestionObject.
- QuestionSelector[…][n] returns a list of n selected questions.
- Typically, QuestionSelector is used with a question notebook available via CreateNotebook["QuestionNotebook"].
- QuestionSelector[…][] is equivalent to First@QuestionSelector[…][1].
- A QuestionSelector may serve questions locally or from the cloud when deployed from a question notebook.
- Cloud-deployed question pools have the form QuestionSelector[CloudObject[…]] for a cloud object containing only a single pool or QuestionSelector[{CloudObject[…],"questionid"}] when the cloud object contains multiple pools, generators or question objects..
- QuestionSelector provides a convenient tool for defining question banks and question pools.
Examples
open allclose allScope (3)
Create a pool of geometry questions:
Get a random question from the pool:
Create a list of multiple questions from the pool:
Deploy a question selector to the cloud:
The solutions are not included in either the pool or the question:
Define a list of true/false questions:
Applications (2)
Properties & Relations (1)
QuestionSelector serves questions from a predefined, static set of questions:
QuestionGenerator can work equivalently using RandomChoice:
QuestionGenerator can also generate new questions:
Neat Examples (1)
Using the resource function RandomEntityQuestion, generate a pool of random multiple choice questions about dog breeds with images as answer choices:
Text
Wolfram Research (2022), QuestionSelector, Wolfram Language function, https://reference.wolfram.com/language/ref/QuestionSelector.html.
CMS
Wolfram Language. 2022. "QuestionSelector." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuestionSelector.html.
APA
Wolfram Language. (2022). QuestionSelector. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuestionSelector.html