While Loops Quiz-Banana TaleI

While Loops Quiz-Banana TaleI

7th Grade

14 Qs

quiz-placeholder

Similar activities

G1 L2

G1 L2

6th - 8th Grade

11 Qs

B1 (PET)  s4 Test 1

B1 (PET) s4 Test 1

6th - 8th Grade

10 Qs

Weather & Climate Post-Test

Weather & Climate Post-Test

7th Grade

10 Qs

Vocabulary - Weeks 25 & 26 REVIEW

Vocabulary - Weeks 25 & 26 REVIEW

7th Grade

12 Qs

Matter & Energy in the Earth System

Matter & Energy in the Earth System

6th - 8th Grade

15 Qs

Renewable and Nonrenewable Energy Quiz

Renewable and Nonrenewable Energy Quiz

7th Grade

10 Qs

Surface Features in the Geosphere

Surface Features in the Geosphere

6th - 8th Grade

15 Qs

3.13 - Federalism/Gov't Obligations Quiz

3.13 - Federalism/Gov't Obligations Quiz

7th Grade

11 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?