Function Repository Resource:

GetQuestionAssessments

Source Notebook

Retrieve stored results from a deployed QuestionObject

Contributed by: Sylvia Haas

ResourceFunction["GetQuestionAssessments"][CloudObject[]]

retrieves the latest assessment data from the specified deployed question object.

ResourceFunction["GetQuestionAssessments"][CloudObject[], user]

retrieves the latest assessment data only for the specified user.

ResourceFunction["GetQuestionAssessments"][CloudObject[],user,All]

retrieves all assessment data for the specified user.

ResourceFunction["GetQuestionAssessments"][CloudObject[],All,All]

retrieves all assessment data for all users.

Details

The given cloud object must either be from the resource function QuestionDeploy or a question notebook with cloud based assessment.
The user must be a valid $CloudUserID value.

Examples

Basic Examples (4) 

Retrieve results from a cloud deployed question:

In[1]:=
ResourceFunction["GetQuestionAssessments"][
CloudObject[
 "https://www.wolframcloud.com/obj/d5ab374d-5439-4dc4-8775-3649a7ca49b7"]]
Out[1]=

Retrieve the latest assessment data for a specific user:

In[2]:=
ResourceFunction["GetQuestionAssessments"][CloudObject[
 "https://www.wolframcloud.com/obj/d5ab374d-5439-4dc4-8775-3649a7ca49b7"], "sylviah@wolfram.com"]
Out[2]=

Retrieve all results for a specific user:

In[3]:=
ResourceFunction["GetQuestionAssessments"][CloudObject[
 "https://www.wolframcloud.com/obj/d5ab374d-5439-4dc4-8775-3649a7ca49b7"], "sylviah@wolfram.com", All]
Out[3]=

Retrieve all results for all users:

In[4]:=
ResourceFunction["GetQuestionAssessments"][CloudObject[
 "https://www.wolframcloud.com/obj/d5ab374d-5439-4dc4-8775-3649a7ca49b7"], All, All]
Out[4]=

Scope (3) 

Deploy a question to the cloud:

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

Assess an answer using the returned CloudObject:

In[6]:=
AssessmentFunction[co][1922]
Out[6]=

Retrieve latest assessments for that question:

In[7]:=
ResourceFunction["GetQuestionAssessments"][co]
Out[7]=

Version History

  • 2.0.0 – 01 February 2022
  • 1.0.0 – 22 October 2021

Related Resources

License Information