Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

quiz-placeholder

Similar activities

Python KS3

Python KS3

6th - 9th Grade

17 Qs

Python Basics - yr 9

Python Basics - yr 9

9th - 12th Grade

18 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

Variables, Inputs and Concatenation

Variables, Inputs and Concatenation

9th Grade

16 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Python

Python

8th Grade

13 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python (Selection)

Python (Selection)

Assessment

Quiz

Computers

8th - 10th Grade

Medium

Created by

Marc Hoy

Used 451+ times

FREE Resource

13 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 is an indentation in Python?

A line of code that returns a value

A subroutine

A block of code that creates a variable

A code block (body of a function, loop etc.) starts with indentation and ends with the first unintended line.

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?