Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

quiz-placeholder

Similar activities

KS3 GCSE Computer Science (Programming / Python)

KS3 GCSE Computer Science (Programming / Python)

7th - 11th Grade

10 Qs

Python-ICT

Python-ICT

8th Grade

20 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Python KS3

Python KS3

8th Grade

17 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

GCSE J277 - 2.3.2 - Syntax and Logic Errors

GCSE J277 - 2.3.2 - Syntax and Logic Errors

7th Grade

20 Qs

Python - Printing, Variables and Syntax

Python - Printing, Variables and Syntax

8th 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?