JavaScript Variables Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
R. Mou
Used 7+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are variables in JavaScript similar to?
Puzzle pieces
Functions
Little boxes to store values
Strings
Loops
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is commonly used to declare a variable in JavaScript?
const
let
int
float
var
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you declare a variable without initializing it, what is it called?
Uninitialized
Null
Empty
Undefined
Zeroed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does initializing a variable mean?
Naming it
Assigning a value to it
Creating a box for it
Naming and assigning a value to it
Deleting it
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare and initialize a variable to store the number 10?
int number = 10;
number = 10;
var number = 10;
float number = 10;
number 10;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? `var value = 53; value = 75; console.log(value);`
53
75
5375
Error
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of variable is used to hold true or false values?
String
Integer
Char
Float
Boolean
Create a free account and access millions of resources
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
21 questions
Google : ¡A trabajar!
Quiz
•
10th - 11th Grade
20 questions
2324tx6
Quiz
•
9th - 12th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
17 questions
Greenfoot
Quiz
•
10th - 12th Grade
20 questions
BT VỀ HĐH
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
