Python Data Types
1.What is the output of 3 == 3.0?
-
A. False
-
B. Error
-
C. True
-
D. 3
True
True
2.What is the output of print(type(None))?
-
A. <class 'NoneType'>
-
B. <type 'None'>
-
C. None
-
D. <None>
. <class 'NoneType'>
. <class 'NoneType'>
3.How do you check the type of a variable?
-
A. typeof(x)
-
B. type(x)
-
C. getType(x)
-
D. check(x)
type(x)
type(x)
4.Which built-in data type is unordered?
-
A. List
-
B. Tuple
-
C. Set
-
D. String
Set
Set