Home / Programming MCQs / Python MCQs / Question

T

Tanmay • 2.43K Points
Master

Q. Which of the following uses the id() function in Python?

(A) id() returns the object identifier
(B) An object does not have a unique identifier
(C) All the answers are true
(D) None of the above
Explanation by: Tanmay
Each object in Python has a unique identifier. The id() function returns the identifier of the object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.