Which keyword can one use make a decision based on a condition?
Control Flow

Quiz
•
Professional Development
•
Professional Development
•
Medium
Daniel Adesoji
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if
let
how
ifToSay
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bisi wants to check if a users age is above 20 and the user is from Nigeria, which if statement can she use?
if (age >=20 && country = 'Nigeria')
if (age > 20 && country === 'Nigeria')
if (age ===20 && country === 'Nigeria')
if (age >= 20 && country === 'Nigeria')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we need to add multiple conditions, what keyword can we use?
evenThough
else
justBecause
other
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following does this:
The age should be equal to or above 10 OR the gender should be male
if (gender === 'male' && age > 10)
if (gender = 'male' && age >= 10)
if (gender === 'male' || age >= 10)
if (gender === 'male' || age > 10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which looping construct in JavaScript is used for iterating over the elements of an array or characters of string?
for loop
continue loop
break loop
insert loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the continue statement in a loop
To terminate the loop and exit
To skip the current iteration and move to the next one
To restart the loop from the beginning
To continue to the next iteration of the loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the break statement in a loop
To terminate the loop and exit
To skip the current iteration and move to the next one
To restart the loop from the beginning
To continue to the next iteration of the loop
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Nodejs: Templating with EJS

Quiz
•
Professional Development
10 questions
Seminar of Psychiatry in Old Age

Quiz
•
Professional Development
15 questions
Country Capital Currency

Quiz
•
Professional Development
15 questions
C Operators

Quiz
•
University - Professi...
10 questions
IT General Control

Quiz
•
Professional Development
8 questions
SUFC Coach Education 2

Quiz
•
10th Grade - Professi...
10 questions
EYA Quiz

Quiz
•
Professional Development
10 questions
pyhthon condition statement

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade