wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Types in Python

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

Below are the valid data types in Python EXCEPT

a)

int

b)

float

c)

char

d)

decimel

2.

_____ data type contain integer values with no decimal such as 1, 200, 999 etc.

a)

int

b)

float

c)

char

d)

String

3.

_____ data type contain integer values with decimal such as 10.1, 5555.0, 33.33 etc.

a)

int

b)

float

c)

char

d)

String

4.

_____ data type contain a character (text) such as A, a, Z, z etc.

a)

int

b)

float

c)

char

d)

String

5.

_____ data type contain a set of characters (text) or word such as Hello, Ali, Car Type etc.

a)

int

b)

float

c)

char

d)

String

6.

_____ data type represent one of two values either True or False such as 1, 0, 2 > 1, 3 < 2.

a)

int

b)

float

c)

char

d)

Boolean

7.

Which if the values below is an integer data type?

a)

1

b)

1.0

c)

1/2

d)

"1"

8.

Which if the values below is a float data type?

a)

2

b)

2.11

c)

2/4

d)

"2.11"

9.

Which if the values below is a char data type?

a)

firstValue

b)

F

c)

1.0

d)

10 > 3

10.

Which if the values below is a string data type?

a)

firstValue

b)

F

c)

1.0

d)

10 > 3

11.

Which if the values below return TRUE if executed?

a)

10 > 3

b)

10 < 3

c)

10 >< 3

d)

10 <> 3

12.

Which if the values below return FALSE if executed?

a)

10 > 3

b)

10 < 3

c)

10 >< 3

d)

10 <> 3

13.

Which if the values below return FALSE if executed?

a)

1

b)

0

c)

-1

d)

-50

14.

Which of the following statement is true between char and string data types?

a)

char data type contain only a character but string data type contain more than one characters

b)

char and string data type can use only one character

c)

char and string is not valid data type

d)

char and string can only be used with number values only