Search Header Logo
python-selection-statements

python-selection-statements

Assessment

Presentation

Computers

7th - 12th Grade

Hard

Created by

M S

Used 13+ times

FREE Resource

15 Slides • 20 Questions

1

Draw

how do you feel today?? circle your choice>>

2

​Selection conditional statements

Chapter 4 - section 1​

3

​Objectives

if - statement

if - else statement

if - elif statement​

define and use

selection control structure

define

4

​Lets start with a revison

5

Multiple Choice

control structure means

1

step by step code running

2

the flow of the code in the program

3

decision and branching code

4

controlling the code

6

Multiple Choice

Conditional statements are expressions that result in either a yes or No

1

true

2

false

3

not sure

4

I dont remember

7

Multiple Choice

The number or word we give to a variable
1
Value
2
Bug
3
Information
4
Text

8

Multiple Choice

What is the word (command) used to display numbers and text on the screen?
1
print
2
input
3
output
4
command

9

Multiple Choice

Relational operators is like:

1

>

2

OR

3

=

4

AND

10

Multiple Choice

Not a Relational operators :

1

=

2

<=

3

>

4

==

11

Multiple Choice

Using the variables

Lexus_XR = 4500 and Tesla = 5200 in Python,

this expression :

Lexus_XR >= Tesla

will be

1

False

2

True

12

Multiple Choice

equal relational operator

1

=

2

!=

3

==

13

media
media

14

​in python we use

if Statements

​for decision making

selection means using statements (rules) that is used for decision making

15

​in python we use

if Statements

​for decision making

media

16

​condition is used in our everyday life

For example

Traffic lights are an example of conditional statements. Since the red light means stop and the green light means to move.

17

​can you give other examples??

media

18

The if statement

The if statement is used together with conditional statements

to decide whether to run a code block or skip it.

19

media

20

Multiple Choice

if statement is used together with ------------ in order to work correctly

1

control statement

2

input function

3

conditional statement

4

print function

21

Multiple Choice

Question image

what will be the output of the shown code?

1

see you tomorrow

2

you should stay and attend classes

3

error

4

nothing

22

Multiple Choice

Question image

what is the output

1

the weather still hot

2

its not hot any more

3

the weather still hot

its not hot any more

4

temp = 30

23

Multiple Choice

Question image

the if statement will ------the block of code ( in line 4 )

1

execute ( run )

2

skip ( not run )

24

Multiple Choice

Question image

line 4 in this code will be

1

skipped

2

executed

3

error

4

nothing

25

Multiple Choice

Question image

line 4 in this code will be skipped because

1

time is > 8

2

the condition of if is false

3

there is an error in the code

4

time must = 8

26

media

​how to fix this ? >>>>>>>>

27

media

28

media
media

29

Multiple Choice

so if you are coding one selection or one option

then its better to use ?

1

if

statement

2

if - else

statement

3

if - elif - else

statement

4

sequencing

30

Multiple Choice

and if you are coding two selections or two options

then its better to use ?

1

if

statement

2

if - else

statement

3

if - elif - else

statement

4

sequencing

31

Multiple Choice

but if they are more then two selections or options

then its better to use ?

1

if

statement

2

if - else

statement

3

if - elif - else

statement

4

sequencing

32

Multiple Choice

if no selections or no repeating you will use ---- coding

1

if

statement

2

if - else

statement

3

if - elif - else

statement

4

sequencing

33

media

34

media

35

Open Ended

Exit Ticket

tell me about what you learned today

how do you feel today?? circle your choice>>

Show answer

Auto Play

Slide 1 / 35

DRAW