Function: gradeQuizQuestion()
function gradeQuizQuestion(
context,
siteUrl,
attemptId,
slot,
__namedParameters
): Promise<{
attemptId: number;
changed: string;
grade?: string;
mark: number;
maxMark?: number;
slot: number;
}>;
Defined in: areas/quizzes/grading.ts:100
Grades one question of a finished attempt by hand, with a comment, through Moodle's comment form (the review's "Make comment or override mark"): an essay waiting for grading, or any question whose mark the teacher overrides. The mark is in the question's points (0 to its maximum in the quiz). Returns the attempt's grade afterwards when the results report shows it.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
attemptId | number |
slot | number |
__namedParameters | { comment?: string; mark: number; } |
__namedParameters.comment? | string |
__namedParameters.mark | number |
Returns
Promise<{
attemptId: number;
changed: string;
grade?: string;
mark: number;
maxMark?: number;
slot: number;
}>