Q. Which built-in function is used to get the class name of an object?

  • (A) type()
  • (B) class()
  • (C) id()
  • (D) str()
πŸ’¬ Discuss
βœ… Correct Answer: (A) type()
Explanation: `type(object)` returns the class/type of the object.
Explanation by: Mr. Dubey
`type(object)` returns the class/type of the object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
118
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate