
JavaScript Multiple-Choice Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Neil Christian Capanzana
FREE Resource
Enhance your content in a minute
60 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in JavaScript?
let x = 10;
var x = 10;
const x = 10;
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for single-line comments in JavaScript?
/* comment */
// comment
# comment
-- comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will typeof null return?
"null"
"undefined"
"object"
"string"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to print something in the console?
print()
log()
console.log()
write()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of "5" + 3 in JavaScript?
8
53
35
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant variable?
var
let
const
define
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an IF statement in JavaScript?
if x = 5 then {}
if (x == 5) {}
if x == 5 {}
if x === 5 then {}
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
56 questions
Manage the Application Life Cycle Lesson 1
Quiz
•
9th Grade - Professio...
55 questions
Ujian Tengah Semester TIK-9A
Quiz
•
9th Grade - University
60 questions
IT Mid-Term Examination Form 5_T1_2025
Quiz
•
9th - 12th Grade
60 questions
CSC134 - TEST1 MAC2024
Quiz
•
12th Grade
59 questions
MTA 98-361: Software Development Fundamentals (Part 3)
Quiz
•
11th - 12th Grade
60 questions
lists and dictionaries in python smsmb
Quiz
•
11th - 12th Grade
60 questions
IT Careers, Hard/Soft Skills, & The Spreadsheet window
Quiz
•
10th Grade - University
60 questions
Examen SQL Segundo Parcial
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
