Exploring JavaScript Canvas Art

Exploring JavaScript Canvas Art

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Quizizz 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()`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?