Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

quiz-placeholder

Similar activities

Input, Output, Variables and Operators

Input, Output, Variables and Operators

5th Grade

20 Qs

Year 7 Lent

Year 7 Lent

7th Grade

20 Qs

Python - If Else...

Python - If Else...

9th Grade

19 Qs

Python Conditionals

Python Conditionals

9th - 11th Grade

17 Qs

Java Conditional Constructs

Java Conditional Constructs

9th - 10th Grade

20 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Programming - Syntax & Logic Errors

Programming - Syntax & Logic Errors

3rd - 12th Grade

10 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?