Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Grading

import type { Grading } from "https://googleapis.deno.dev/v1/forms:v1.ts";

Grading for a single question

interface Grading {
correctAnswers?: CorrectAnswers;
generalFeedback?: Feedback;
pointValue?: number;
whenRight?: Feedback;
whenWrong?: Feedback;
}

§Properties

§
correctAnswers?: CorrectAnswers
[src]

Required. The answer key for the question. Responses are automatically graded based on this field.

§
generalFeedback?: Feedback
[src]

The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they've had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.

§
pointValue?: number
[src]

Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.

§
whenRight?: Feedback
[src]

The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.

§
whenWrong?: Feedback
[src]

The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.