Vidyalelo
Python · Q23

Concept of Object Oriented Programs in Python

Programming · Python · question 23

Q23

What will be the output of the following Python code? >>> class A: pass >>> class B(A): pass >>> obj=B() >>> isinstance(obj,A)

A.
True
Answer
B.
False
C.
Wrong syntax for isinstance() method
D.
Invalid method for classes

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board