wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PYTHON LOOPING

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The loops that execute an exact number of times are called ____?

a)

While Loop

b)

Infinite Loop

c)

Indefinite Loops

d)

Definite Loops

2.

Which of the following does repeats a statement or group of statements while a given condition is TRUE?

a)

While Loop

b)

Infinite Loop

c)

Indefinite Loops

d)

Definite Loops

3.

Which among the following is the correct syntax of while loop statement in Python?

a)
b)
c)
d)
4.

It executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.

a)

While Loop

b)

Nested Loop

c)

Sequence Loop

d)

For Loop

5.

What do you call a loop within a loop body?

a)

While Loop

b)

Nested Loop

c)

For Loop

d)

Definite Loop

6.

What will be the output of the code below?

a)

1

b)

Hello1

c)

Hello

d)

Hello 1

7.

It is like a loop test that can happen anywhere in the body of the loop.

a)

Breaking

b)

Loop

c)

Break

d)

Continue

8.

This statement ends the current loop and jumps to the statement immediately following the loop.

a)

Breaking

b)

Loop

c)

Break

d)

Continue

9.

This statement ends the current iteration and jumps to the top of the loop and starts the next iteration.

a)

Breaking

b)

Loop

c)

Break

d)

Continue

10.

The continue statement ends the _____?

a)

past iteration

b)

current iteration

c)

present iteration

d)

next iteration