While Loops Quiz-Banana TaleI

While Loops Quiz-Banana TaleI

7th Grade

14 Qs

quiz-placeholder

Similar activities

Levels of Organization Challange

Levels of Organization Challange

7th Grade

10 Qs

Scholastic News-September 29, 2025

Scholastic News-September 29, 2025

6th - 8th Grade

10 Qs

Unit 5 Lessons 1 - 3

Unit 5 Lessons 1 - 3

7th Grade

15 Qs

Week 6 FRIDAY:  Language Quiz

Week 6 FRIDAY: Language Quiz

1st Grade - University

10 Qs

Heat Transfer

Heat Transfer

6th - 8th Grade

15 Qs

Grade 8 Coding Assessment

Grade 8 Coding Assessment

6th - 8th Grade

16 Qs

7.X Lewis and Clark

7.X Lewis and Clark

6th - 8th Grade

11 Qs

Carbon Cycle Quiz

Carbon Cycle Quiz

7th Grade

18 Qs

While Loops Quiz-Banana TaleI

While Loops Quiz-Banana TaleI

Assessment

Quiz

others

7th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?