Flow Control in Python

Flow Control in Python

University

33 Qs

quiz-placeholder

Similar activities

AP CS A unit 1

AP CS A unit 1

11th Grade - University

36 Qs

CAIT2 - Batch 2A - Laboratory Activity 3

CAIT2 - Batch 2A - Laboratory Activity 3

University

30 Qs

Quiz Pemrograman Dasar

Quiz Pemrograman Dasar

University

30 Qs

ES084 Quiz#3: Algorithm and Flowcharting

ES084 Quiz#3: Algorithm and Flowcharting

University

35 Qs

Internship on "ML & DL using Python"

Internship on "ML & DL using Python"

University

35 Qs

C PROGRAMMING TEST

C PROGRAMMING TEST

University

33 Qs

C++ Basic Programming Elements

C++ Basic Programming Elements

University

28 Qs

PEMROGRAMAN TERSTRUKTUR - X RPL

PEMROGRAMAN TERSTRUKTUR - X RPL

University

30 Qs

Flow Control in Python

Flow Control in Python

Assessment

Quiz

Computers

University

Medium

Created by

Mohd. Khan

Used 28+ times

FREE Resource

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)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?