The following for loop would repeat how many times?
for ( let num = 1; num < 3; num = num + 1 ){
}
P5.js Review - Part 2
Quiz
•
Computers
•
10th Grade
•
Medium
Mr. Kedwell
Used 7+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following for loop would repeat how many times?
for ( let num = 1; num < 3; num = num + 1 ){
}
0
1
2
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following for loop would repeat how many times?
for ( let num = 1; num <= 3; num = num + 1 ){
}
0
1
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following for loop would repeat how many times?
for ( let num = 0; num < 6; num = num + 2 ){
}
0
1
2
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many lines would be drawn on the screen utilizing the following While Loop code?
let y = 0;
while (y <= 50) {
y = y + 10;
line(20, y, 50, y);
}
0
4
5
6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This concept "helps with organizing and reusing code" best describes what?
functions
return
parameter
selection (If/else)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code will generate random numbers for x in what range?
function setup() {
createCanvas(400, 200);
let x = int(random(0, width));
}
0 to 399
0 to 200
200 to 400
1 to 400
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The description "This function is called once when a mouse button is pressed." aligns with what function?
mousePressed()
mouseReleased()
mouseDragged()
mouseClicked()
doubleClicked()
26 questions
Computer Coding Basics
Quiz
•
1st - 11th Grade
21 questions
AP CSP Unit 5 Ch 1 Quiz
Quiz
•
9th - 12th Grade
25 questions
JavaScript Console & Graphics Review
Quiz
•
9th - 12th Grade
21 questions
P5.js Exam 1
Quiz
•
9th - 12th Grade
31 questions
Year 7 Computer Science Baseline
Quiz
•
KG - Professional Dev...
22 questions
App Inventor Basics Quiz
Quiz
•
9th - 12th Grade
24 questions
Computer Applications Quiz (1)
Quiz
•
10th Grade
30 questions
Scratch Exam New
Quiz
•
9th - 12th Grade
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
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University