Python Intro Practice

Python Intro Practice

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

JAVASCRIPT

JAVASCRIPT

12th Grade

25 Qs

IST CodeHS Unit 5 Web Design Review

IST CodeHS Unit 5 Web Design Review

9th - 12th Grade

25 Qs

qzptsfn

qzptsfn

12th Grade

25 Qs

CSS Fundamentals

CSS Fundamentals

9th Grade

25 Qs

4.01 Test

4.01 Test

9th - 12th Grade

28 Qs

HTML

HTML

9th - 12th Grade

25 Qs

JavaScript

JavaScript

9th - 12th Grade

29 Qs

Code.org: Web Development: Unit 2 Lessons 1 - 9

Code.org: Web Development: Unit 2 Lessons 1 - 9

6th - 9th Grade

25 Qs

Python Intro Practice

Python Intro Practice

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Elise Johnson

Used 6+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
What is the output for the code in the picture?

Hi there

"Hi there"

<class 'str'>

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is the variable in the code in the picture?
def text_prompt():
name
print("Hello" + name)
text_prompt()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What data type does the input() function return?

float

integer

string

boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What part of the code in the picture is the function call?
def text_prompt():
name
print("Hello" + name)
text_prompt()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign a variable in Python?
score = 0
score == 0
print(score)
score: 0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is the output for the code in the picture?
<class 'str'>
<class 'int'>
<class 'bool'>
<class 'float'>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is the output for the code in the picture?
<class 'str'>
<class 'int'>
<class 'bool'>
<class 'float'>

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?