QuestionGenerator
QuestionGenerator[<"name1":>val1,"name2":>val2,… >, genfunc]
represents a QuestionObject generated by applying genfunc to "name1":>val1,"name1":>val2,….
QuestionGenerator[CloudObject[…]]
represents a cloud-deployed question generator.
Details and Options
- The generation function genfunc should be a function that returns a QuestionObject when applied to the parameter association <"name1":>val1,"name2":>val2 >.
- QuestionGenerator[params,genfunc][] effectively generates a QuestionObject by evaluating genfunc[params].
- QuestionGenerator[params,genfunc][assessments] evaluates genfunc[params,assessments] to generate a QuestionObject based on the parameters params as well as the AssessmentResultObject assessments. By including previous results in assessments, a series of questions can adapt to the users performance.
- Typically, QuestionGenerator is used with a question notebook available via CreateNotebook["QuestionNotebook"] or from FileNewProgrammatic NotebookQuestion Notebook.
- A QuestionGenerator may evaluate locally or in the cloud, in the case of a deployed assessment.
- Cloud-deployed question generators have the form QuestionGenerator[CloudObject[…]] for a cloud object containing only a single generator or QuestionGenerator[{CloudObject[…],"questionid"}] when the cloud object contains multiple generators, pools or question objects.
- QuestionGenerator[genfunc] is equivalent to QuestionGenerator[< >,genfunc].
Examples
open allclose allBasic Examples (4)
Create random questions using a generator:
Create questions using RandomEntity:
Create random survey questions using a generator:
Create a generator that produces unique questions each time it is evaluated:
Text
Wolfram Research (2022), QuestionGenerator, Wolfram Language function, https://reference.wolfram.com/language/ref/QuestionGenerator.html.
CMS
Wolfram Language. 2022. "QuestionGenerator." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuestionGenerator.html.
APA
Wolfram Language. (2022). QuestionGenerator. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuestionGenerator.html