Basic JavaScript Concepts
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Samten Wangmo
Used 9+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement in JavaScript?
a) To execute code repeatedly
b) To check if a condition is true or false
c) To declare variables
d) To stop a loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a template literal in JavaScript?
a) 'Hello'
b) "Hello"
c) `Hello`
d) {{Hello}}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a loop in JavaScript?
a) To declare a variable
b) To execute a block of code repeatedly
c) To define a function
d) To stop execution
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
a) 5
b) 5 6
c) 0
d) Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a feature of template literals?
a) Multi-line strings
b) Variable interpolation
c) Embedding expressions
d) Implicit type conversion
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a while loop and a do...while loop?
a) while loop executes the block at least once
b) do...while checks the condition before executing the block
c) do...while checks the condition after executing the block
d) There is no difference
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used to combine multiple conditions in an if statement?
a) &&
b) ||
c) &
d) Both a and b
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
Round 1 ( RHA Learner Contest )
Quiz
•
University
20 questions
Network topologies
Quiz
•
8th Grade - University
20 questions
WML & WAP
Quiz
•
University
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
•
1st Grade - Professio...
20 questions
Basic of Computer and Network
Quiz
•
8th Grade - University
20 questions
SPCC ISE 2 Quiz TE B
Quiz
•
University
19 questions
m2-bbdd
Quiz
•
KG - University
20 questions
Software Engineering Quiz 1
Quiz
•
University
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
