Python Data Types

Python Data Types

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Joy Perez

Used 9+ times

FREE Resource

Student preview

quiz-placeholder

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

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?