Python Selection

Python Selection

9th - 10th Grade

10 Qs

quiz-placeholder

Similar activities

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Python   Inputs

Python Inputs

9th - 12th Grade

11 Qs

Java Operators

Java Operators

9th Grade

15 Qs

CSPUnit6AssessmentReview

CSPUnit6AssessmentReview

9th - 12th Grade

12 Qs

Unit 6 Quiz Prep

Unit 6 Quiz Prep

9th - 12th Grade

15 Qs

IPOS Cycle

IPOS Cycle

10th Grade

15 Qs

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Logic APCSP

Logic APCSP

9th - 12th Grade

10 Qs

Python Selection

Python Selection

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

O Hawkridge

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the name of the variable in this program?

print

colour

input

" "

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code print?

access denied

access granted

error

password

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the user enters 60, what is the output?

You are old!

You are middle-aged!

You are young!

Error message

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does “==” represent in Python programming?
less than
equal to
greater than
not equal to

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct Python code.
if age is less than 20 then
if age > 20:
if age < 20:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol must you place at the end of an if statement?

)

:

;

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does != mean?

not

swap value

not equal

equal

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?