Search Header Logo

Flow Control in Python

Authored by Mohd. Khan

Computers

University

Used 30+ times

Flow Control in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a Python program , a control structure:

directs the order of execution of the statements in the program

dictates what happens before te program starts and after it terminates

defines program-specific data structures

manages the input and output of control characters

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty/null statement in python is ____________

go

pass

over

;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

selection

repetition

sequence

flow

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following statements will make a selection construct ?

if

for

if-else

while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the above program ?

Am I here?

Or here ?

Am I here ? Or here ?

Or here ? Or over here ?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Yes

No

May be

Nothing printed

Error

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Function range(3) is equivalent to "

range(1,3)

range(0,3)

range(0,3,1)

range(1,3,0)

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?

Discover more resources for Computers