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 test1(self): print(" test of A called ") class B(A): def test(self): print(" test of B called ") class C(A): def test(self): print(" test of C called ") class D(B,C): def test2(self): print(" test of D called ") obj=D() obj.test()

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • test of B called

Related Computer Questions

What is the highest index for an array with 10 elements in C? Slow shutdown can be performed by setting innodb_fast_shutdown to ______ What will be the output of the following code: for (int i = 0; i < 5; ++i) { if (i == 2) continue; cout << i << " "; } in C++? The default scheduling property of MySQL is implemented by how many of these? MyISAM, MERGE, MEMORY void (*signal(int sig, void (*func)(int)))(int);If the value of func is SIG_IGN then ______