Search Header Logo
Python Selection Statement

Python Selection Statement

Assessment

Presentation

Computers

7th - 12th Grade

Medium

Created by

Deepa Lakshmy

Used 13+ times

FREE Resource

4 Slides • 5 Questions

1

Python SELECTION & LOOPING Statement

by Deepa Lakshmy

2

​Types of Statements

​Sequential

​Selection

​Looping

3

Poll

How many types if Selection Statements are there in Python?

2

3

4

None of these

4

​Lets Take a look

​t= input("enter the time in hrs")

if t<12:

​elif t>=12 :

​elif t>=18:

​print( " Buenos días")​

​print("Namaskaar")

​print("adios")

​Ques : What would be the output if the value of t inputted is

​(a) 3

​(b) 10

​(c) 15

5

Multiple Choice

Question image

what would be the output of the following code if the value of N=123

1

0

2

123

3

124

4

12.3

6

Multiple Choice

Question image

What would be output of the given code ?

1

FALSE

2

FALSE

TRUE

3

TRUE

FALSE

TRUE

4

TRUE

TRUE

7

Multiple Choice

Question image

What is the total for 12 items that weigh 3 pounds?

1

$3.45

2

$3.11

3

$3.105

4

$3.10

8

​Using LOGICAL operators

and- BOTH

​or - any of the given condition

not- opposite value of the condition

9

Multiple Choice

Which of the following will evaluate to true?

i) True AND False

ii) False or True

iii) False AND (True or False)

1

i

2

ii

3

i and ii

4

ii and iii

Python SELECTION & LOOPING Statement

by Deepa Lakshmy

Show answer

Auto Play

Slide 1 / 9

SLIDE