Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

quiz-placeholder

Similar activities

Grade 7 Python

Grade 7 Python

7th Grade

20 Qs

Python Beginner

Python Beginner

9th - 10th Grade

16 Qs

python selection

python selection

8th Grade

11 Qs

Intro to Python

Intro to Python

8th Grade

10 Qs

Variables, Inputs and Concatenation

Variables, Inputs and Concatenation

9th Grade

16 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python year 9

Python year 9

8th - 11th Grade

20 Qs

Lord Bill's Year 7 Python Quiz

Lord Bill's Year 7 Python Quiz

6th - 8th Grade

13 Qs

Selection in Python

Selection in Python

Assessment

Quiz

Computers

1st - 9th Grade

Hard

Created by

Tezel Asena

Used 3K+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is a valid example of selection?

if

print

x = 1

=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is else if denoted as in Python?

elif

elseif

eli

if:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a comparison operator

!=

=

==

<=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = 1

if a != 1:

Is this true or false?

True

False

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

What will this code print?

Type and enter your answer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code output when the data you enter is 100?

Syntax error

target hit

target missed

Nothing (null)

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select all the correct logical operators

and

for

or

not

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?