Class 11:Fundamentals Question Set 2

11.
type() function helps us to find the data type of a variable.

a. True
b. False

 

12.
a=123
print(type(a))
will give the result as “<class ‘int’>”.

a. True
b. False

 

13.
a=”hello”
print(type(a))
will give the result as “<class ‘str’>”.

a. True
b. False

 

14.
a=17.8
print(type(a))
will give the result as “<class ‘float’>”.

a. True
b. False

 

15.
a=True
print(type(a))
will give the result as “<class ‘bool’>”.

a. True
b. False