Python - Flow control

Python - Flow control

Assessment

Flashcard

Computers

11th Grade

Practice Problem

Hard

Created by

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

Media Image

Back

Or here ? Or over here ?

6.

FLASHCARD QUESTION

Front

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

Media Image

Back

May be

7.

FLASHCARD QUESTION

Front

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

Back

5

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?