Search Header Logo

P5.js Quiz

Authored by Digital dreams

Computers

6th - 8th Grade

Used 3+ times

P5.js Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What function do we use to create rectangles?

ellipse()

line()

arc()

rect()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is a function?

A toaster

Lines of code that perform specific tasks

Input

Kale Chip

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this image, createCanvas and background are examples of _____.

Parameters

Variables

Functions

gloopity gloop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Numbers inside of the parentheses following the name of the function, which provide information the function needs, are called ________.

Brackets

Ellipses

Variables

Parameters (or Arguments)

5.

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.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the y coordinate of the following rectangle?

rect(70, 120, 150, 180);

70

120

150

180

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following has the correct function, parameters and 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);

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?