
While Loops Quiz-Banana TaleI
Authored by Kelzang Lethro
others
7th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a while loop?
A loop that only runs once
A loop that runs a fixed number of times
A loop that runs in reverse order
A loop that repeats as long as a condition is true
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the syntax of a while loop look like?
for condition in range:
while condition:
if condition then:
do while condition:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'spray_at()' method?
To check the maximum water level
To print the current value
To increment the water level
To fill the well with water
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the condition of a while loop becomes false?
The loop restarts from the beginning
The loop continues indefinitely
The loop stops executing
The loop executes one more time
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example provided, what is the maximum water level of the well?
8
6
5
7
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of 'num' in the first demo?
5
1
0
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does the elephant need to spray to fill the well in Demo 2?
5 times
6 times
7 times
8 times
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
18 questions
Electricity
Quiz
•
7th Grade
10 questions
Realidades 1A verbs with "gustar"
Quiz
•
7th Grade
10 questions
BC, AD, BCE, CE QUIZ
Quiz
•
7th Grade - University
13 questions
Lightning Thief Chapter 4: My Mother Teaches Me Bullfighting
Quiz
•
6th - 8th Grade
18 questions
Wildfire Quiz Ch. 1 - 7
Quiz
•
6th - 8th Grade
15 questions
Narrative Essay Structure Quiz
Quiz
•
7th Grade
11 questions
Unit 6 Vocab
Quiz
•
7th Grade
12 questions
Church vs. State/Innovations in Thinking Test
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for others
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
15 questions
Graphing Inequalities
Quiz
•
7th - 9th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
Mean, Median, Mode, and Range
Quiz
•
7th Grade