
Debugging
Authored by Brenda McLachlin
Computers
3rd - 12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why isn't my square showing up?
background(255);
fill(0, 0, 255);
quad(150, 150, 75, 75);
There aren't enough numbers in background
There aren't enough numbers in quad
Quad cannot draw squares
There's no draw function
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why isn't my code running?
if (x > 12)
fill(0);
else
fill(255, 0, 0);
x can't be greater than 12
Missing braces after if and else
The first fill doesn't have enough numbers in it
Else is not a keyword in javascript
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why isn't my code working?
var draw = fuction() {
fill(255, 0, 255);
ellipse(x, 200, 50, 50);
x++;
};
Unnecessary semicolon
A word is misspelled
Missing a comma
= should be ===
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why isn't my code working?
for (var i = 0; 1 < 20; i++) {
ellipse(random(400), random(400), 50, 50);
}
Missing semicolon
Random doesn't have enough numbers in it
You wrote 1 instead of i
Improper definition of i
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why isn't my code working?
var Thing = {
x : 12,
size : 20,
};
var thing1 = new Thing();
Thing is not an object prototype
Size is a reserved word
Commas should be semicolons
You can't use numbers in variable names
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
I'm trying to reset my ellipse to the left side of the screen. Why has it disappeared?
if (x < 400) {
x = -50;
}
Less than sign should be greater than sign
= should be ===
Missing semicolon
Missing else statement
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should I add to make my circle move across the screen?
var x = 0;
ellipse(x, 200, 50, 50);
x++;
A draw function
A background
A fill function
All three
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
Repaso final Classroom
Quiz
•
10th Grade
22 questions
одномерные массивы
Quiz
•
10th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
15 questions
10-класс Контрольная работа
Quiz
•
1st - 3rd Grade
20 questions
PowerPoint
Quiz
•
6th Grade
20 questions
STS Informatika
Quiz
•
10th Grade - University
20 questions
BÀI THI THỬ MÔN TIN HỌC LỚP 4
Quiz
•
1st - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade