Function Repository Resource:

QuestionDeploy

Source Notebook

Deploy a question object to the cloud

Contributed by: Sylvia Haas

ResourceFunction["QuestionDeploy"][QuestionObject[]]

deploys the assessment of the QuestionObject to the cloud.

ResourceFunction["QuestionDeploy"][QuestionObject[], location]

deploys the assessment to the specified location relative to the user's current cloud directory.

ResourceFunction["QuestionDeploy"][QuestionObject[], CloudObject[]]

deploys assessment to the specified cloud object.

ResourceFunction["QuestionDeploy"][{q1,q2,},]

deploys multiple questions to a single cloud object for combined assessment.

Details

ResourceFunction["QuestionDeploy"] requires Version 13.0 or higher of the Wolfram Language.
ResourceFunction["QuestionDeploy"] returns an Association containing the CloudObject to which the question was deployed and a QuestionObject that performs assessment using that CloudObject.
ResourceFunction["QuestionDeploy"][{q1,q2,},] returns an Association containing the CloudObject to which the question was deployed and a list of QuestionObjects that perform assessment using that CloudObject.
ResourceFunction["QuestionDeploy"] supports all the options of CloudDeploy.
The value of the Permissions option should be set so that "Execute" permissions are given to any user who can answer the deployed question.

Examples

Basic Examples (1) 

Cloud deploy a QuestionObject:

In[1]:=
ResourceFunction["QuestionDeploy"][
 QuestionObject["What year was Betty White born?", AssessmentFunction[{1922 -> 10, 1924 -> -1,  "19??" -> 2, 1984 -> -2 }]]]
Out[1]=

Scope (1) 

Cloud deploy a list of question objects:

In[2]:=
ResourceFunction["QuestionDeploy"][{
  QuestionObject["Is pi irrational?", AssessmentFunction[{True}]], QuestionObject["Which is the symbol for pi?", AssessmentFunction[{"\[CurlyPhi]", "\[CapitalRho]", "\[Omega]", "\[Pi]" -> 1, "\[Sigma]"} ]], QuestionObject["Which is an approximation of pi:", AssessmentFunction[{1.1414, 3.1415 -> 1, 2.7182}]]}]
Out[2]=

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.0 – 20 September 2021

License Information