Exploring JavaScript Canvas Art

Exploring JavaScript Canvas Art

9th Grade

12 Qs

quiz-placeholder

Similar activities

JavaScript Graphics

JavaScript Graphics

9th - 12th Grade

10 Qs

HTML Graphics

HTML Graphics

9th - 12th Grade

16 Qs

CP M.6 Assessment Review

CP M.6 Assessment Review

9th - 12th Grade

17 Qs

Quiz 5 (28.07.2021)

Quiz 5 (28.07.2021)

1st - 12th Grade

10 Qs

płyta główna, procesor

płyta główna, procesor

1st - 12th Grade

17 Qs

Define Variables

Define Variables

9th - 12th Grade

12 Qs

Unit 4 Inkscape Visual Graphics

Unit 4 Inkscape Visual Graphics

9th Grade

10 Qs

JavaScript L1 Quiz 2

JavaScript L1 Quiz 2

5th - 12th Grade

10 Qs

Exploring JavaScript Canvas Art

Exploring JavaScript Canvas Art

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Keith Lavigne

FREE Resource

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

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?