
While Loops Quiz-Banana TaleI

Quiz
•
others
•
7th Grade
•
Hard
Kelzang Lethro
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Surface Features in the Geosphere

Quiz
•
6th - 8th Grade
18 questions
Wildfire Quiz Ch. 1 - 7

Quiz
•
6th - 8th Grade
11 questions
3.13 - Federalism/Gov't Obligations Quiz

Quiz
•
7th Grade
11 questions
G1 L2

Quiz
•
6th - 8th Grade
18 questions
Topic 2 Test Savvas Body Systems

Quiz
•
6th - 8th Grade
10 questions
B1 (PET) s4 Test 1

Quiz
•
6th - 8th Grade
10 questions
WEDNESDAY MATH 8 SET#1: Functions and Slope (8th CCSS)

Quiz
•
6th - 8th Grade
10 questions
Renewable and Nonrenewable Energy Quiz

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for others
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety

Quiz
•
7th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade