P5.js Exam 1

P5.js Exam 1

9th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

Math and IT - Elimination Round

Math and IT - Elimination Round

10th - 12th Grade

20 Qs

Ինֆորմատիկա 10 II   կիսամյակի  ամփոփիչ աշխատանք

Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք

10th - 12th Grade

20 Qs

Storage Devices and Media Quiz

Storage Devices and Media Quiz

10th Grade

19 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

City & Guilds Award in Business Processes

City & Guilds Award in Business Processes

12th Grade

20 Qs

P5.js Exam 1

P5.js Exam 1

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Nicole Sledge

Used 32+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The area where all drawn graphics are displayed is known as the...

console 
canvas
variable
palate

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__________________ are the values inside of the parentheses following the name of the function. These values will be different based on the information that the function needs.

Brackets 
Ellipses
Variables
Parameters

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a built in variable in P5.js?

background
varX
mouseX
rect

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What, if anything, is the difference between function setup () and function draw()?

Function setup is a loop and function draw only runs once.
There are no differences.
Function setup and function draw are both loops but they allow the programmer to do different things.
Function setup runs once and function draw is a loop.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

'Background, arc, and ellipse' are all examples of ______________ in p5.js.

functions
custom variables
shapes
parameters

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many parameters are there in the code for drawing a line in p5.js?
Hint: line(x1,y1,x2,y2)

5
1
4
2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

mouseX and mouseY are variables that represent...

The location of the mouse on the X and Y axis.
The location of your drawing on the x and y axis.
The size of the canvas.
None of the above.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?