
Coding Variables
Authored by Stephanie Placa
Computers
7th - 8th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How are variables created?
label=value;
var label = value;
var value;
var label;
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following lines of code do?
1) var size = 100;
2) background("skyblue");
3) fill("yellow");
4)ellipse(400, 0, size, size);
Create a yellow ellipse in the top left corner.
Create a yellow ellipse in the top right corner.
There was an error due to the size in line 4.
None of the following answers.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Debug the following lines of code:
1) var 2bugs = 15;
2) fill("red");
3) ellipse(200, 200, bugs, bugs);
Line 1: label can't start with a number
Line 3: labels aren't the same as line 1
Line 1: the declaration of variables isn't done correctly
There is nothing to fix
4.
OPEN ENDED QUESTION
5 mins • Ungraded
Compare how to use variables in coding versus in math class.
Evaluate responses using AI:
OFF
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Determine the difference between = and ==.
= means gets the value
== means comment
== means gets the value
= means comment
= means gets the value
== means equal to
They are the same thing
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
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade