p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Event Handling

Event Handling

5th - 12th Grade

10 Qs

Avaliação de Pensamento Computacional | Ensino Médio

Avaliação de Pensamento Computacional | Ensino Médio

10th Grade

10 Qs

p5 3d mode

p5 3d mode

9th - 12th Grade

10 Qs

Code.org Discoveries Unit 3 Lesson 4-5

Code.org Discoveries Unit 3 Lesson 4-5

7th Grade

17 Qs

Javascript Assessment

Javascript Assessment

6th - 8th Grade

15 Qs

Code.org Unit 3 Lesson 3 and 4

Code.org Unit 3 Lesson 3 and 4

6th - 8th Grade

15 Qs

Cmu Cs Academy Unit Two Variables

Cmu Cs Academy Unit Two Variables

9th Grade

11 Qs

Javascript Basics (Khan Academy)

Javascript Basics (Khan Academy)

6th - 8th Grade

15 Qs

p5.js Week1 PREtest

p5.js Week1 PREtest

Assessment

Quiz

Computers

7th - 12th Grade

Medium

Created by

Alicia Kostecki

Used 46+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Parameters

Variables

Functions

gloopity gloop

2.

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)

3.

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.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In a p5.js canvas, what are the coordinates of the top left corner?

0,0

100,100

-width, -height

It depends on the size of the canvas

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 SELECT QUESTION

30 sec • 1 pt

What are some shapes we can create (with a single function) in p5.js?

Rectangle

Circle

Dog

Triangle

7.

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

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?