
JavaScript Quiz
Authored by Donshay Somborn
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in JavaScript?
A section of the website
A way to store information that can be used later
A type of function
A loop that runs forever
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a way to define an array in JavaScript?
var colors = "red", "green", "blue";
var colors = 1: "red", 2: "green", 3: "blue";
var colors = ["red", "green", "blue"];
var colors = (1 = "red", 2 = "green", 3 = "blue");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in JavaScript?
var myVariable;
variable myVariable;
v myVariable;
declare myVariable;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
var x = 5;
num x = 5;
number x = 5;
x = 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```javascript var a = true; var b = false; var c = a + b; ```
"truefalse"
1
0
"1false"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in JavaScript?
A section of the document
A type of JavaScript data
A container for storing data values
A command that performs a specific action
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a variable in JavaScript?
`var name = "John";`
`variable name = "John";`
`String name = "John";`
`name := "John";`
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
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
17 questions
Lección1 - JavaScript
Quiz
•
1st Grade - Professio...
20 questions
LATIHAN SOAL PRAKARYA 9
Quiz
•
1st - 12th Grade
20 questions
Documente Web. Formatul HTML
Quiz
•
9th Grade - University
20 questions
Proxy Quiz
Quiz
•
11th - 12th Grade
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade