MCQ
Which of the following is the use of id() function in python?
  • 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

Correct option: A.
Id returns the identity of the object
Id returns the identity of the object

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free