Search Header Logo

Exploring JavaScript Canvas Art

Authored by Keith Lavigne

Computers

9th Grade

Exploring JavaScript Canvas Art
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to draw a rectangle on a canvas in JavaScript?

`drawRect()`

`rect()`

`createRect()`

`rectDraw()`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

`clearRect()`

`eraseRect()`

`removeRect()`

`deleteRect()`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to draw a circle on a canvas?

`drawCircle()`

`arc()`

`circle()`

`ellipse()`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To animate a shape on a canvas, which function is commonly used to repeatedly call a function you create so that your drawing updates?

`setInterval()`

`requestAnimationFrame()`

`setTimeout()`

`animate()`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To start a new path

To fill a path

To close a path

To stroke a path

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to set the color of a shape in canvas?

`fillColor`

`strokeColor`

`fillStyle`

`outlineColor`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to fill a shape with color on a canvas?

`fill()`

`color()`

`paint()`

`shade()`

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?