Python MCQ Questions Set-4
Here is an interesting Python MCQ Quiz. Attempting this MCQ will help you to evaluate your knowledge and skills. Q1: What will be the output of the following Python code? class A(): def disp(self): print(“A disp()”) class B(A): pass obj = B() obj.disp() a) Invalid syntax for inheritance b) Error because when an object is … Read more