JS Loops

Quiz
•
Other
•
Professional Development
•
Easy
Mariessa D
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True or false?:
The while loop keeps on iterating as long as the specified condition is truthy.
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why do we use loops?
To check a condition with repeatable code
To write a function
to detect errors in the console
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the "continue" statement do?
The continue statement breaks the loop
The continue statement can be used to restart a loop
The continue statement increments the loop
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the "break" statement do?
start the loop
restart the loop
iterate the loop
end the loop
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you make an infinite loop using a while
statement?
By setting the condition to true
By omitting the condition
By using a break statement inside the loop
By not updating the loop variable
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True or false?:
If programmed incorrectly, a for loop and a while loop can run infinitely.
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to get the body of a loop to be executed at least once, regardless of the loop's condition?
There is no way to do so
Using do..while loop
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Water Side #1

Quiz
•
Professional Development
12 questions
Quorum Programming Day 3 Review

Quiz
•
Professional Development
17 questions
horses

Quiz
•
KG - Professional Dev...
10 questions
Info Sharing & Quiz (1/4) - Circular Economy Introduction

Quiz
•
Professional Development
10 questions
Chapter 7: Security Awareness

Quiz
•
Professional Development
10 questions
ฟังก์ชั่นพื้นฐานของ Arduino

Quiz
•
Professional Development
10 questions
THE PATASOLA

Quiz
•
KG - Professional Dev...
10 questions
Abdominal Compartment Syndrome

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development