Exploring JavaScript Canvas Art

Exploring JavaScript Canvas Art

Assessment

Flashcard

Computers

9th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which method is used to draw a rectangle on a canvas in JavaScript? Options: `drawRect()`, `rect()`, `createRect()`, `rectDraw()`

Back

`rect()`

2.

FLASHCARD QUESTION

Front

What is the correct method to clear a specific rectangular area on a canvas?

Back

`clearRect()`

3.

FLASHCARD QUESTION

Front

Which method is used to draw a circle on a canvas? Options: `drawCircle()`, `arc()`, `circle()`, `ellipse()`

Back

`arc()`

4.

FLASHCARD QUESTION

Front

To animate a shape on a canvas, which function is commonly used to repeatedly call a function you create so that your drawing updates? Options: `setInterval()`, `requestAnimationFrame()`, `setTimeout()`, `animate()`

Back

`setInterval()`

5.

FLASHCARD QUESTION

Front

What is the purpose of the `beginPath()` method in canvas drawing?

Back

To start a new path

6.

FLASHCARD QUESTION

Front

Which property is used to set the color of a shape in canvas? Options: `fillColor`, `strokeColor`, `fillStyle`, `outlineColor`

Back

`fillStyle`

7.

FLASHCARD QUESTION

Front

Which method is used to fill a shape with color on a canvas? Options: `fill()`, `color()`, `paint()`, `shade()`

Back

`fill()`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers