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

Which of the following implies no relationship with respect to correlation? What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)? import datetime tday=datetime.date.today() print(tday) Which of the following is/are not applications of bit arrays? Why headers and footers used in MS -Word Which Python library is commonly used for distributed data processing and parallel computing, especially for big data analysis?