PCAP Exam QuestionsBrowse all questions from this exam

PCAP Exam - Question 119


The __bases__ property contains:

Show Answer
Correct Answer: B

The __bases__ property in Python contains a tuple of base class objects. This property is present in a class object and is used to determine the base classes from which a class inherits. Therefore, the most accurate answer is that it contains base class objects.

Discussion

3 comments
Sign in to comment
angelika_azOption: B
Jun 1, 2022

B correct

seaverickOption: C
Jan 28, 2024

class A: pass class B(A): pass print(B.__bases__) #output (<class '__main__.A'>,) Ans is C

Damon54Option: B
Feb 8, 2024

base class objects (class) is correct ( more accurate )