Search Header Logo

Python Data Types

Authored by Joy Perez

Computers

8th Grade

Used 9+ times

Python Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = 5

print(type(x))

list

str

int

range

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = "Hello World"

print(type(x))

set

bytes

bool

str

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = 20.5

print(type(x))

int

float

set

memoryview

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = ["apple", "banana", "cherry"]

print(type(x))

tuple

list

dict

bool

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = ("apple", "banana", "cherry")

print(type(x))

tuple

list

bool

int

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = {"name" : "John", "age" : 36}

print(type(x))

dict

list

tuple

str

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following code example would print the data type of x, what data type would that be?

x = {"name" : "John", "age" : 36}

print(type(x))

float

str

bool

int

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?