exam questions

Exam PCAP-31-03 All Questions

View all questions & answers for the PCAP-31-03 exam

Exam PCAP-31-03 topic 1 question 108 discussion

Actual exam question from Python Institute's PCAP-31-03
Question #: 108
Topic #: 1
[All PCAP-31-03 Questions]

What is true about the __bases__ property?

  • A. there is no such property
  • B. it is accessible inside a class and an object
  • C. it is accessible inside a class
  • D. it is accessible inside an object
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Abbribas
1 month, 2 weeks ago
Selected Answer: C
> __bases__ is a special attribute in Python. > It provides a tuple of a class's direct parent classes. > It is accessed directly via the class, e.g., ClassName.__bases__. > While callable through an object's __class__ attribute, it is fundamentally a class property, not an object's direct attribute.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...