Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
Edward Smale edited this page Apr 7, 2020 · 2 revisions

Quiz

Represents a quiz assignment.

Extends Assignment

Properties

.random_order (Boolean) Whether or not the quiz questions are to be shown in random order.

.time_limit (Number) How long the user has to answer each question in seconds.

.completed (Boolean) Whether or not the the quiz has been completed.

.answered_by_students (Boolean) Whether or not the quiz is to be answered by students.

.question_ids (Array<Number>) An array of question IDs for the quiz.

Methods

.getOwnSubmission()

Get your own submission to the assignment. Returns Promise<QuizSubmission>

.getSubmissions([...ids])

  • [...ids] (Number) A list of all submission IDs to retrieve. Leave out to retrieve all.

Get a list of submissions to the assignment. Returns Promise<Array<QuizSubmission>>

.getQuestions([...ids])

  • [...ids] (Number) A list of all question IDs to retrieve. Leave out to retrieve all.

Get a list of questions to the quiz. Returns Promise<Array<QuizQuestion>>

Clone this wiki locally