JavaScript Variables Quiz
Quiz
•
Computers
•
10th Grade
•
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
LOOKUP
Quiz
•
9th Grade - University
15 questions
Bebras Colage B
Quiz
•
7th - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Ôn tập KTGK. Bài 20. Câu lệnh lặp For
Quiz
•
10th Grade
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
20 questions
ÔN TẬP KÌ I TIN HỌC 4
Quiz
•
3rd Grade - University
20 questions
El Computador
Quiz
•
5th - 11th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
