
JavaScript Multiple-Choice Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Neil Christian Capanzana
FREE Resource
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 {}
Create a free account and access millions of resources
Similar Resources on Wayground
60 questions
Technology Quiz Bee JHS Department

Quiz
•
9th - 12th Grade
56 questions
J277/02 Computational thinking, algorithms and programming

Quiz
•
9th Grade - University
60 questions
MEGAQUIZ 2

Quiz
•
3rd - 12th Grade
56 questions
Manage the Application Life Cycle Lesson 1

Quiz
•
9th Grade - Professio...
55 questions
Javascript - Beginner Practice

Quiz
•
12th Grade - Professi...
58 questions
Quiz de Ingeniería Multimedia

Quiz
•
12th Grade
60 questions
Examen SQL Segundo Parcial

Quiz
•
12th Grade
60 questions
Latihan Soal DMI Kelas 12 Multimedia

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade