Flow Control in Python

Flow Control in Python

University

33 Qs

quiz-placeholder

Similar activities

PL101 MIDTERM Long Quiz

PL101 MIDTERM Long Quiz

University

35 Qs

PAK TOPIC 3

PAK TOPIC 3

University

30 Qs

Algoritma dan Logika Informatika

Algoritma dan Logika Informatika

University

35 Qs

Bab 3-Sistem Komputer -Grade 5

Bab 3-Sistem Komputer -Grade 5

5th Grade - University

35 Qs

Programming Logic and Design - Chapter 4 - Making Decisions

Programming Logic and Design - Chapter 4 - Making Decisions

University - Professional Development

35 Qs

Python Quiz II

Python Quiz II

9th Grade - University

30 Qs

ALGO - Lesson 4 (Data Structure)

ALGO - Lesson 4 (Data Structure)

University

28 Qs

ATS K9

ATS K9

9th Grade - University

30 Qs

Flow Control in Python

Flow Control in Python

Assessment

Quiz

Computers

University

Medium

Created by

Mohd. Khan

Used 30+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?