
JavaScript Basics Quiz
Quiz
•
Education
•
University
•
Practice Problem
•
Medium
Rw8 Sodvadiya
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
dim
declare
var
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write “Hello World” in an alert box?
alertBox("Hello World");
msgBox("Hello World");
alert("Hello World");
msg("Hello World");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output "Hi" to the browser console?
print("Hi")
console.print("Hi")
console.log("Hi")
log.console("Hi")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a correct JavaScript data type?
integer
decimal
object
real
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of `2 + "2"` in JavaScript?
4
22
Error
NaN
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method selects an element with a specific class?
getElementByClassName
getElementsByClassName
queryElementClass
classSelector
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add a click event to a button?
addEvent
onClick()
addEventListener()
clickEvent()
Create a free account and access millions of resources
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
15 questions
MKT558 Tutorial (Chapter 9 & 10)
Quiz
•
University
20 questions
REVISAO IMUNO AP1
Quiz
•
University
19 questions
Financing Education in NC
Quiz
•
University - Professi...
17 questions
International Trade
Quiz
•
University
18 questions
21st Century Education
Quiz
•
University
20 questions
Hotel Introduction
Quiz
•
University
15 questions
QUIZ 5
Quiz
•
University
20 questions
CAD/CAM
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Education
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
