wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

DATATYPES-PYTHON

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which one of these is a floating point number?

a)

3.2

b)

4

c)

500

d)

270000

2.

Which of these will output the result 36?

a)

30+*6

b)

6<6

c)

6**6

d)

6*6

3.

what is the output of 1/2 ?

a)

1

b)

0

c)

0.5

4.

Which of the following is correct for dictionaries in Python?

a)

value ; key

b)

[1,2.2]

c)

key : value

d)

{key : value}

5.

Fill in the blank:

Python uses ______________ that makes you able to reassign the values, but not in other programming languages.

a)

Statical Typing

b)

Dynamic Typing

6.

Fill in the blank

-Anything enclosed in a single quote or double quote is a _____________

a)

List

b)

Tuple

c)

String

7.

which of the following bracket is used to enclose dictionary.

a)

[ ]

b)

( )

c)

{ }

d)

<>

8.

why list and tuples are not same?

a)

it's because list is not a datatype

b)

it's because tuples are not a datatype

c)

it's because list is enclosed with [ ] and tuples are enclosed with ( )

d)

both b and c

9.

what will be the boolean for

24-2 == 2-24

a)

False

b)

True

10.

Which of the following is not a Datatype?

a)

List

b)

variable

c)

Tuple

d)

booleans