Search Header Logo

Y-8 Unit-8 More About Python (Exercises)

Authored by Ent Htet

Information Technology (IT)

6th - 8th Grade

Used 6+ times

 Y-8 Unit-8 More About Python (Exercises)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the "break statement" do?

Skips the rest of the loop

Terminates the current loop

Continues to the next iteration

Stops the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the "continue" statement do?

Skips the rest of the loop and continues to the next iteration

Terminates the loop and exits block of code before it finishes iterations

Restarts the loop from the beginning

Pauses the loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which loop uses a counter variable that "increments" or "decrements"?

WHILE loop

DO-WHILE loop

FOR loop

Infinite loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of statement is used to "alter the flow of control" in a loop?

Conditional statement

Jump statement

Return statement

Breakpoint statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is a "loop"?

A function that runs forever

A code block that runs once

A condition that stops execution

A statement that repeats a block of code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which loop runs as long as the test condition is true?

FOR loop

WHILE loop

Infinite loop

Conditional loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which are the two types of loops used in Python?

FOR and DO-WHILE

WHILE and IF-ELSE

FOR and WHILE

FOR and SWITCH

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?