Sets the answer for a question. Custom questions must call CQ.setAnswer in active mode to set
the student answer.
CQ.setAnswer(String id, String answer) : void
- id – The custom question ID.
- answer –
The student's answer to the question.
If the question is a standard question type, the answer should conform to the rules in the "answer" attribute of the
If the question is not a standard question
type, answer should include the student's score (in points), optionally followed by a vertical bar ('|') character and
any additional answer data; for example, ".85|data". If you omit the score, for example "|data",
the assessment containing this question is sent to the teacher for manual grading.