
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
20 questions
WEB DESIGN QUIZ P2
Quiz
•
12th Grade
20 questions
Sjmit-Q2-[Workshop-MAR-25]
Quiz
•
12th Grade - University
15 questions
Quiz sobre desfragmentación de discos 1A
Quiz
•
12th Grade
14 questions
Digitális Témahét 2024: Mi és a MI
Quiz
•
9th - 12th Grade
20 questions
S4 SDD Revision
Quiz
•
11th - 12th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
18 questions
Kuis 2 DIM
Quiz
•
9th - 12th Grade
17 questions
Aplicaciones Web
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade