Search Header Logo

CP: P5.js Test Review (Post)

Authored by Ms. Janik

Computers

9th - 12th Grade

Used 13+ times

CP: P5.js Test Review (Post)
AI

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?

background
varX
mouseX
rect

2.

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.

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

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?