
Understanding Variables in Programming
Authored by Stephanie Ramocan
Computers
6th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, which keyword is used to declare a variable?
var
let
const
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the assignment operator in JavaScript?
To add numbers
To assign a value to a variable
To compare values
To declare a variable.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using CamelCase in JavaScript, how should words be written?
All lowercase
All uppercase
Words together with capitalized first letters
Words separated by spaces.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: The keyword 'let' is only needed when ____ a variable.
reassigning
creating
deleting
printing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What analogy is used to explain variables in the document?
A tree
A box
A river
A mountain
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What types of values can we store in variables in JavaScript?
Numbers, booleans, and strings
Only numbers
Only strings
Only booleans.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of an integer in JavaScript?
3.14
0
22.3
99.99
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?