Python | Functions | Question 6
Which of the following is the use of id() function in python?
(A) Id returns the identity of the object
(B) Every object doesn’t have a unique id
(C) All of the mentioned
(D) None of the mentioned
Answer: (A)
Explanation: Each object in Python has a unique id. The id() function returns the object’s id.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- Python | Functions | Question 2
- Python | Functions | Question 5
- Python | Functions | Question 7
- Python | Functions | Question 1
- Python | Functions | Question 4
- Python | Functions | Question 3
- Python-Quizzes | Functions | Question 8
- Python-Quizzes | Functions | Question 9
- Python Inner Functions
- Functions in Python
- Python User defined functions
- Python | startswith() and endswidth() functions
- Python lambda (Anonymous Functions) | filter, map, reduce
- C | Functions | Question 3
- C | Functions | Question 4



