Python Intro Practice

Python Intro Practice

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

G9_U0_revision

G9_U0_revision

9th Grade

26 Qs

Journey Inside

Journey Inside

9th - 11th Grade

25 Qs

latihan sketchup #1

latihan sketchup #1

9th Grade

25 Qs

Understanding Input, Selection and Loops in Python

Understanding Input, Selection and Loops in Python

7th Grade - University

25 Qs

Ujian Teori

Ujian Teori

11th Grade

25 Qs

Pangkalan Data 2

Pangkalan Data 2

8th - 12th Grade

25 Qs

Networks

Networks

12th Grade

25 Qs

PTLW BIIIIIIIIIIIIL TAAAAAAAAAANG

PTLW BIIIIIIIIIIIIL TAAAAAAAAAANG

KG - University

25 Qs

Python Intro Practice

Python Intro Practice

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Elise Johnson

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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'>

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?