Check sibling questions
Computer Science - Class 12
Chapter 14 - Functions in python

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:

The id( ) function is an in-built function which returns a unique id for the specified object. All objects in python has its own unique id.

So, the correct answer is (a).

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.