1.

What does built-in function type do in context of classes?(a) Determines the object name of any value(b) Determines the class name of any value(c) Determines class description of any value(d) Determines the file name of any valueI got this question during an online interview.This interesting question is from Inheritance topic in portion Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer» RIGHT answer is (B) Determines the class name of any value

Easiest explanation - For EXAMPLE: >>> type((1,)) gives .


Discussion

No Comment Found

Related InterviewSolutions