Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

quiz-placeholder

Similar activities

GCSE J277 - 2.5.2 - IDEs

GCSE J277 - 2.5.2 - IDEs

7th Grade

20 Qs

Computer Science Debug

Computer Science Debug

4th Grade

15 Qs

Python - Making Decisions

Python - Making Decisions

9th Grade

12 Qs

Python - Week 1

Python - Week 1

8th - 10th Grade

10 Qs

9.3 Assessment recap homework

9.3 Assessment recap homework

8th Grade

20 Qs

Python Boolean and If

Python Boolean and If

9th - 12th Grade

10 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Micro:Bit Homework 1

Micro:Bit Homework 1

6th - 10th Grade

20 Qs

Selection in Python

Selection in Python

Assessment

Quiz

Computers

1st - 9th Grade

Hard

Created by

Tezel Asena

Used 4K+ 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?