QuestionGenerator[<|"name1":>val1,"name2":>val2,|>, genfunc]

represents a QuestionObject generated by applying genfunc to "name1":>val1,"name1":>val2,.


represents a cloud-deployed question generator.


  • 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"].
  • When used in a question notebook, QuestionGenerator[params,genfunc] will automatically generate questions by evaluating genfunc[params,assessments], where assessments is automatically built from the previous questions in the 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].


open allclose all

Basic 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 every time:

Use it:

Scope  (2)

Create random geography questions:

Create several instances of the question:

Create a question generator and deploy it to the cloud:

Get the deployed generator:

Use it:

The solution to the question is not contained in either the deployed generator or the generated question:

Wolfram Research (2022), QuestionGenerator, Wolfram Language function,


Wolfram Research (2022), QuestionGenerator, Wolfram Language function,


Wolfram Language. 2022. "QuestionGenerator." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2022). QuestionGenerator. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2022_questiongenerator, author="Wolfram Research", title="{QuestionGenerator}", year="2022", howpublished="\url{}", note=[Accessed: 09-August-2022 ]}


@online{reference.wolfram_2022_questiongenerator, organization={Wolfram Research}, title={QuestionGenerator}, year={2022}, url={}, note=[Accessed: 09-August-2022 ]}