
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
55 questions
Bài 6 - Bài 8
Quiz
•
12th Grade
58 questions
Network Devices and Protocols Quiz
Quiz
•
12th Grade
57 questions
Career Management Obj 2.0
Quiz
•
9th - 12th Grade
62 questions
Computer Science Principles
Quiz
•
9th - 12th Grade
62 questions
CSP CMU Unit 2 - Student Created Questions
Quiz
•
9th - 12th Grade
55 questions
2021 SAMPLE PAPER 1 (TERM 1)
Quiz
•
11th - 12th Grade
55 questions
Linux Test Prep 2
Quiz
•
8th Grade - Professio...
60 questions
Technology Quiz Bee JHS Department
Quiz
•
9th - 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
