Python Intro Practice

Python Intro Practice

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Hardware and Software Fundamentals

Hardware and Software Fundamentals

10th - 11th Grade

30 Qs

Module 7 Motherboards 1

Module 7 Motherboards 1

9th - 12th Grade

25 Qs

2.3 Robust Programs

2.3 Robust Programs

9th - 11th Grade

25 Qs

តេស្តកុំព្យូទ័រ ខែមករា

តេស្តកុំព្យូទ័រ ខែមករា

9th - 12th Grade

25 Qs

Komputer Akuntansi Manufaktur

Komputer Akuntansi Manufaktur

12th Grade

25 Qs

Basis Data

Basis Data

11th Grade

25 Qs

MP  PKWU 3

MP PKWU 3

12th Grade

25 Qs

Video Games

Video Games

KG - University

28 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?