Skip to main content

Function: quizResults()

Call Signature​

function quizResults(
context,
siteUrl,
activityId,
options
): Promise<QuizResults<ListPage<QuizAttemptResult>>>;

Defined in: areas/quizzes/results.ts:135

A quiz's attempts as its grades report shows them: per attempt the user, state, dates, grade and the mark per question; with responses, also the answer per question from the responses report. Every page of the report; with limit, attempts is a page of them in the report's order (see "Long lists" in the docs' concepts), read from the one page of the report's own paging that holds it.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
optionsWithLimit<QuizResultsOptions>

Returns​

Promise<QuizResults<ListPage<QuizAttemptResult>>>

Call Signature​

function quizResults(
context,
siteUrl,
activityId,
options?
): Promise<QuizResults<QuizAttemptResult[]>>;

Defined in: areas/quizzes/results.ts:136

A quiz's attempts as its grades report shows them: per attempt the user, state, dates, grade and the mark per question; with responses, also the answer per question from the responses report. Every page of the report; with limit, attempts is a page of them in the report's order (see "Long lists" in the docs' concepts), read from the one page of the report's own paging that holds it.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
options?WithoutLimit<QuizResultsOptions>

Returns​

Promise<QuizResults<QuizAttemptResult[]>>

Call Signature​

function quizResults(
context,
siteUrl,
activityId,
options?
): Promise<QuizResults<
| QuizAttemptResult[]
| ListPage<QuizAttemptResult>>>;

Defined in: areas/quizzes/results.ts:137

A quiz's attempts as its grades report shows them: per attempt the user, state, dates, grade and the mark per question; with responses, also the answer per question from the responses report. Every page of the report; with limit, attempts is a page of them in the report's order (see "Long lists" in the docs' concepts), read from the one page of the report's own paging that holds it.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
options?QuizResultsOptions

Returns​

Promise<QuizResults< | QuizAttemptResult[] | ListPage<QuizAttemptResult>>>