
CP: P5.js Test Review (Post)
Authored by Ms. Janik
Computers
9th - 12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a built in variable in P5.js?
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What, if anything, is the difference between function setup () and function draw()?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
'Background, square, and ellipse' are all examples of ______________ in p5.js.
functions
custom variables
shapes
parameters
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many parameters are there in the code for drawing a line in p5.js?
5
1
4
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for drawing a rectangle?
Rect(x,y,width,height);
rect(x,y,width,height);
rect(width, height, x, y)
rect(x1, x2, y1, y2, width, height);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the y coordinate of the following circle?
ellipse(70, 120, 150, 180);
70
120
150
180
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
______________ are lines of code that perform specific tasks.
Parameters
Variables
Functions
Objects
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?