Python - Flow control

Python - Flow control

Assessment

Flashcard

Computers

11th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

In a Python program, a control structure:

Back

directs the order of execution of the statements in the program

2.

FLASHCARD QUESTION

Front

An empty/null statement in python is ____________

Back

pass

3.

FLASHCARD QUESTION

Front

The order of statement execution in the form of top to bottom, is known as ______ construct

Back

sequence

4.

FLASHCARD QUESTION

Front

The ___________ construct allows to choose statements to be executed, depending upon the result of a condition.

Back

selection

5.

FLASHCARD QUESTION

Front

What is the output of the above program ?

Back

Or here ? Or over here ?

6.

FLASHCARD QUESTION

Front

If the user inputs : 2<Enter> , what does the following code snippet print ?

Back

May be

7.

FLASHCARD QUESTION

Front

How many times will the following loop run?
for i in range(5):
print(i)

Back

5