wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Types

Total questions: 20

Worksheet time: 6mins

Name
Class
Date
1.

What is the Python data type bool stand for?

a)

string

b)

integer

c)

Boolean

d)

float

2.

What does the Python data type str stand for?

a)

string

b)

integer

c)

Boolean

d)

float

3.

What does the Python data type float stand for?

a)

string

b)

integer

c)

Boolean

d)

float

4.

What does the Python data type int stand for?

a)

string

b)

integer

c)

Boolean

d)

float

5.

What is the output for this line of code: print(type(8))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

6.

What is the output for this line of code: print(type(63.1))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

7.

What is the output for this line of code: print(type('hello'))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

8.

What is the output for this line of code: print(type(True))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

9.

What is the output for this line of code: print(type('True'))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

10.

What is the output for this line of code: print(type(4/2))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

11.

What is the output for this line of code: print(type(1/3))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

12.

What is the output for this line of code: print(type("1/3"))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

<class 'float'>

13.

What is the output for this line of code: print(type(false))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

error

14.

What is the stat type returned for this line of code: type(False)

a)

Boolean

b)

string

c)

integer

d)

float

15.

What is the stat type returned for this line of code: type("Yeah online learning!")

a)

Boolean

b)

string

c)

integer

d)

float

16.

What is the stat type returned for this line of code: type(0.6)

a)

Boolean

b)

string

c)

integer

d)

float

17.

What is the output for this line of code: print(type('I love Quizizz!"))

a)

<class 'bool'>

b)

<class 'str'>

c)

<class 'int'>

d)

error

18.

What is the stat type returned for this line of code: type(100)

a)

Boolean

b)

string

c)

integer

d)

float

19.

What is the stat type returned for this line of code: type(100/4)

a)

Boolean

b)

string

c)

integer

d)

float

20.

What is the stat type returned for this line of code: type(100/3)

a)

Boolean

b)

string

c)

integer

d)

float