JavaScript Control Structures Review
Quiz
•
Other
•
12th Grade
•
Practice Problem
•
Easy
Crystal Wong
Used 25+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the syntax for an if-else statement in JavaScript?
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will a for loop iterate if the condition is 'i < 5' and the initial value of i is 0?
5
1
0
2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a while loop in JavaScript?
To skip a block of code
To execute a block of code only once
To repeatedly execute a block of code as long as a specified condition is true.
To terminate the execution of a loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator is used to combine two or more conditions and returns true if all conditions are true?
OR
NOT
XOR
AND
5.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the output of the following code? var x = 5; var y = 10; if (x > y) { console.log('x is greater than y'); } else if (x < y) { console.log('x is less than y'); } else { console.log('x is equal to y'); }
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
3 mins • 1 pt
What is the syntax for a for loop in JavaScript?
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if-else statement in JavaScript?
To define a function in JavaScript
To repeat a code block multiple times
To assign a value to a variable in JavaScript
To execute different code blocks based on a condition
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
11 questions
TIGERS
Quiz
•
8th - 12th Grade
10 questions
Prime Ministers of India
Quiz
•
1st Grade - University
10 questions
Dragon Mania Ledgends Quiz
Quiz
•
1st Grade - Professio...
15 questions
Quis open loop dan close loop
Quiz
•
12th Grade
15 questions
Piaget Review
Quiz
•
10th - 12th Grade
15 questions
College Vocabulary 101
Quiz
•
9th - 12th Grade
10 questions
CSS QUIZ #3
Quiz
•
9th - 12th Grade
10 questions
BHS General Knowledge Test Quiz
Quiz
•
8th - 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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
