Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 2. Provide JSON string with rules that will be used to grade answers

Code Block
titleMyRules
collapsetrue
{
  "Pages": [
    {
      "PageId": 12345,
      "CorrectPoints": 5,
      "IncorrectPoints": 2,
      "EmptyPoints": 1,
      "IncompleteAnswerPoints": 0.5,
      "IncompleteAnswersAllowed": true,
      "QuestionRules": [
        {
          "QuestionName": "Question1",
          "ToGrade": true,
          "Answer": "A",
          "CorrectPoints": 4
        },
        {
          "QuestionName": "Question2",
          "ToGrade": true,
          "Answer": "D"
        },
        {
          "QuestionName": "Question3",
          "ToGrade": true,
          "Answer": "C"
        },
        {
          "QuestionName": "Question4",
          "ToGrade": true,
          "Answer": "BE"
        },
        {
          "QuestionName": "Question5",
          "ToGrade": true,
          "Answer": "ED"
        },
        {
          "QuestionName": "Question6",
          "ToGrade": true,
          "Answer": "C"
        },
        {
          "QuestionName": "Question7",
          "ToGrade": true,
          "Answer": "A"
        },
        {
          "QuestionName": "Question8",
          "ToGrade": true,
          "Answer": "B"
        },
        {
          "QuestionName": "Question9",
          "ToGrade": true,
          "Answer": "D"
        },
        {
          "QuestionName": "Question10",
          "ToGrade": true,
          "Answer": "C",
          "EmptyPoints": 3
        }
      ]
    }
  ]
}

...

Code Block
titleMyTestResults.grade
collapsetrue
{
  "Pages": [
    {
      "PageId": 12345,
      "TotalPoints": 35.5,
      "MaxPossiblePoints": 49,
      "GradedQuestions": 10,
      "QuestionGrades": [
        {
          "QuestionName": "Question1",
          "Points": 4,
          "Response": "A",
          "CorrectAnswer": "A",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question2",
          "Points": 5,
          "Response": "D",
          "CorrectAnswer": "D",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question3",
          "Points": 5,
          "Response": "C",
          "CorrectAnswer": "C",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question4",
          "Points": 5,
          "Response": "EB",
          "CorrectAnswer": "BE",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question5",
          "Points": 0.5,
          "Response": "D",
          "CorrectAnswer": "ED",
          "IsCorrect": false
        },
        {
          "QuestionName": "Question6",
          "Points": 5,
          "Response": "C",
          "CorrectAnswer": "C",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question7",
          "Points": 1,
          "Response": "",
          "CorrectAnswer": "A",
          "IsCorrect": false
        },
        {
          "QuestionName": "Question8",
          "Points": 5,
          "Response": "B",
          "CorrectAnswer": "B",
          "IsCorrect": true
        },
        {
          "QuestionName": "Question9",
          "Points": 2,
          "Response": "C",
          "CorrectAnswer": "D",
          "IsCorrect": false
        },
        {
          "QuestionName": "Question10",
          "Points": 3,
          "Response": "",
          "CorrectAnswer": "C",
          "IsCorrect": false
        }
      ]
    }
  ]
}