p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Hour of Code - Drawing with Code

Hour of Code - Drawing with Code

6th - 12th Grade

15 Qs

Object Oriented Programming

Object Oriented Programming

12th Grade

18 Qs

Javascript Drawing

Javascript Drawing

8th - 12th Grade

15 Qs

javascript - khan academy

javascript - khan academy

6th - 8th Grade

11 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

p5.js - shape and color

p5.js - shape and color

8th Grade

17 Qs

Introdução ao JavaScript

Introdução ao JavaScript

10th Grade

10 Qs

PC - 1ºAno - Projeto Corrida - Diversos Tipos de Questões

PC - 1ºAno - Projeto Corrida - Diversos Tipos de Questões

10th Grade - University

12 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?