Saltar al contenido principal

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​

ParameterType
contextBrowserContext
siteUrlstring
attemptIdnumber
slotnumber
__namedParameters{ comment?: string; mark: number; }
__namedParameters.comment?string
__namedParameters.marknumber

Returns​

Promise<{ attemptId: number; changed: string; grade?: string; mark: number; maxMark?: number; slot: number; }>