Exploring JavaScript Canvas Art

Exploring JavaScript Canvas Art

9th Grade

12 Qs

quiz-placeholder

Similar activities

Grade 9 MIT

Grade 9 MIT

9th Grade

10 Qs

CS CMU Quiz 1

CS CMU Quiz 1

9th - 12th Grade

15 Qs

JavaScript Canvas Introduction Quiz

JavaScript Canvas Introduction Quiz

9th - 12th Grade

10 Qs

AV2a - Pensamento Computacional - Explorando o p5.js

AV2a - Pensamento Computacional - Explorando o p5.js

2nd Grade - University

10 Qs

1.2.3 Colors and Gradients Quiz CMU CS Academy

1.2.3 Colors and Gradients Quiz CMU CS Academy

9th - 12th Grade

10 Qs

Pygame кітапханасы

Pygame кітапханасы

9th Grade

10 Qs

Unit 3: Interactive Animations and Games - Lessons 3-6

Unit 3: Interactive Animations and Games - Lessons 3-6

6th Grade - University

15 Qs

CMU CS Academy Unit

CMU CS Academy Unit

9th Grade

15 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?