JavaScript Variables Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
K B
Used 6+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Show Me What You Got! How do you declare a variable in JavaScript?
let
function
var
variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! What are the different types of values that a variable in JavaScript can represent?
apple, banana, orange, grape
cat, dog, bird, fish
red, blue, green, yellow
string, number, boolean, object, function, undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! Is JavaScript attentive to the way we dress up variable names, paying attention to uppercase and lowercase letters?
No
Yes
Sometimes
Only on weekends
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! You're creating a new variable in JavaScript for your intergalactic DJ app. What rules must you follow for naming it?
Variable names must begin with a letter, underscore (_), or dollar sign ($)
Variable names must begin with a special character
Variable names must begin with a number
Variable names must begin with a hyphen
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! Imagine you're a developer working on a JavaScript project. You declare a variable but forget to assign it any value. What does JavaScript default this variable to?
undefined
false
0
null
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! Explain the difference between 'let', 'var', and 'const' in JavaScript variable declaration.
They are all used for declaring global variables only
They have different scopes and usage in JavaScript.
They are all the same and can be used interchangeably
They are all outdated and not recommended for modern JavaScript development
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Show Me What You Got! Can a variable name in JavaScript be initiated with a digit?
Yes
Maybe
Only on Tuesdays
No
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
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
