Python | Functions | Question 1
What will be the output of the following code :
print type(type(int)) |
chevron_right
filter_none
(A) type ‘int’
(B) type ‘type’
(C) Error
(D) 0
Answer: (B)
Explanation: The type() function returns the class of the argument the object belongs to. Thus, type(int) returns which is of the type ‘type’ object.
Quiz of this Question
Recommended Posts:
- Python | Functions | Question 2
- Python | Functions | Question 3
- Python | Functions | Question 4
- Python | Functions | Question 5
- Python | Functions | Question 6
- Python | Functions | Question 7
- Python-Quizzes | Functions | Question 8
- Python-Quizzes | Functions | Question 9
- C | Functions | Question 2
- C | Functions | Question 4
- C | Functions | Question 3
- C | Functions | Question 5
- C | Functions | Question 7
- C | Functions | Question 6
- C | Functions | Question 8

