Python Intro Practice

Python Intro Practice

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Web Design Final Exam Review-HTML

Web Design Final Exam Review-HTML

9th - 12th Grade

33 Qs

CodeHS - Matisse - What is the Internet

CodeHS - Matisse - What is the Internet

6th - 12th Grade

26 Qs

HTML 5 (Parte 1)

HTML 5 (Parte 1)

10th Grade

25 Qs

Intro to Web Development (Pre-Test)

Intro to Web Development (Pre-Test)

9th - 12th Grade

25 Qs

ICT 9 Quiz 2nd

ICT 9 Quiz 2nd

8th - 9th Grade

25 Qs

HTML TEST 25

HTML TEST 25

10th Grade

25 Qs

2024_1P_2S

2024_1P_2S

10th Grade

25 Qs

HTML & CSS

HTML & CSS

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