What is the correct way to declare a variable to store the number of circles drawn on the canvas in p5.js?
Variables and ifs in p5.js

Quiz
•
Computers
•
8th Grade
•
Medium
Chris Mera
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
`number circles = 0;`
`var numberOfCircles;`
`int numberOfCircles = 0;`
`let numberOfCircles = 0;`
2.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Where should I declare my variables?
In the setup()
Before the setup()
In the loop()
Wherever I want
3.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
What will be the value of `x` after the following code is executed?
let x = 5; x = x + 10;
5
10
15
20
4.
MULTIPLE SELECT QUESTION
45 sec • 20 pts
Which of the following variable declarations is NOT valid in p5.js?
`let_score;`
`let=2ndPlace;`
`let-$amount;`
`let playerHeight;`
5.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
What is the value of the variable declared as `let score;` in p5.js?
13
yes
undefined
0
6.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
Which of the following is the correct way to declare a variable for storing the user's name in p5.js?
`string userName;`
`var userName;`
`let userName = '';`
`userName = " ";`
7.
MULTIPLE CHOICE QUESTION
45 sec • 20 pts
What variable am I missing to describe this object?
let sqX = 20;
let sqW = 20;
let sqH = 20;
let sqColor = "black"
createCanvas
sqY
mouseY
mouseX
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Operating System Vocabulary

Quiz
•
6th - 8th Grade
15 questions
Introduction Of Laravel

Quiz
•
KG - University
14 questions
Python Basic Unit 1

Quiz
•
7th - 8th Grade
15 questions
Snake Game

Quiz
•
3rd - 8th Grade
10 questions
JavaScript ievads

Quiz
•
7th - 8th Grade
12 questions
Front-end quiz

Quiz
•
1st - 10th Grade
11 questions
O que vamos aprender?

Quiz
•
1st Grade - University
14 questions
Making Websites Quiz Y9

Quiz
•
8th - 9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade