Search Header Logo

Python Loop Statements

Authored by btechsmartclass .com

Other

Professional Development

Used 180+ times

Python Loop Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The loop statements are used to ____________.

Make a decision

execute the same code repeatedly

to jump from one line to another

to perform IO operations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code?

Hello

Error

Hello for infinite times

prints nothing

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the iterative statements in python.

while

if

for

do-while

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for loop in python works on _____________.

range

iterable data

both range and iterable data

any data

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select the statements that check condition in python

while

for

do-while

if

elif

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

1 2 3 4

1 2 3 4 5

1

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to comeout come out of a loop?

exit

continue

break

all the bove

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?