
JavaScript Control Flow – MCQ Quiz (With Answers)
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Medium
Dheepan G
Used 3+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to make decisions in JavaScript?
select
if
loop
switchcase
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an if statement in JavaScript?
if (condition) then { }
if condition { }
if (condition) { }
if { condition }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to test multiple conditions with the same variable?
if
else
switch
when
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code print?
Big
Small
10
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a switch statement, which keyword stops execution from continuing to the next case?
stop
break
end
exit
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this output?
A
A B
B
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop runs a block of code at least once, even if the condition is false?
for
while
do...while
if
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
15 questions
Internal Order Perta Arun Gas
Quiz
•
Professional Development
15 questions
IT Test
Quiz
•
Professional Development
20 questions
HTML, CSS, Terminal & JavaScript
Quiz
•
Professional Development
22 questions
Canvas Workshop Quiz
Quiz
•
Professional Development
22 questions
Information Security Controls Quiz
Quiz
•
Professional Development
16 questions
Blocuri de programare Lego
Quiz
•
Professional Development
20 questions
From LAS to LUMI Pre-test
Quiz
•
Professional Development
15 questions
Python Chapter 5: Functions
Quiz
•
Professional Development
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Information Technology (IT)
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
