Vidyalelo
Python · Q58

Classes and Objects in Python

Programming · Python · question 58

Q58

How can you check if an object belongs to a specific class in Python?

A.
By using the isinstance() function
Answer
B.
By using the belongsto() method
C.
By using the classof() method
D.
By using the typeof() function

Answer: Option A

Solution

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