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

Examples

open allclose all

Basic Examples  (1)

Create a question selector:

Get a random question from the pool:

Scope  (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:

Get the deployed pool:

Use it:

The solutions are not included in either the pool or the question:

Define a list of true/false questions:

Create a pool that generates three questions from the list:

Generate the questions:

Applications  (2)

Create a question pool asking for the population of G7 countries:

Create a function to generate questions about classes of animals:

Make a question pool:

Retrieve a question from the pool:

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:

Select a random question:

Wolfram Research (2022), QuestionSelector, Wolfram Language function, https://reference.wolfram.com/language/ref/QuestionSelector.html.

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

BibTeX

@misc{reference.wolfram_2022_questionselector, author="Wolfram Research", title="{QuestionSelector}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/QuestionSelector.html}", note=[Accessed: 09-August-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_questionselector, organization={Wolfram Research}, title={QuestionSelector}, year={2022}, url={https://reference.wolfram.com/language/ref/QuestionSelector.html}, note=[Accessed: 09-August-2022 ]}