Home / MCQ Bank / Computer
Computer Concept Of Object Oriented Programs In Python

What will be the output of the following Python code? class A: def __str__(self): return '1' class B(A): def __init__(self): super().__init__() class C(B): def __init__(self): super().__init__() def main(): obj1 = B() obj2 = A() obj3 = C() print(obj1, obj2,obj3) main()

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 1 1 1

Related Computer Questions

Select the statements which describe the correct usage of exception handling over conventional error handling approaches? The language that is the core for APIs and communication in MySQL is ______ To return the remainder after a number is divided by a divisor in EXCEL we use the function? Which of the following is the most desirable condition for interpolation search? What is the significance of the Sqoop "--split-by" option in the import command?