Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCAP topic 1 question 119 discussion

Actual exam question from Python Institute's PCAP
Question #: 119
Topic #: 1
[All PCAP Questions]

The __bases__ property contains:

  • A. base class location (addr)
  • B. base class objects (class)
  • C. base class names (str)
  • D. base class ids (int)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://www.honeybadger.io/blog/python-instantiation-metaclass/#:~:text=Python%20provides%20a%20__bases,that%20the%20given%20class%
20inherits.&text=The%20above%20output%20shows%20that,object%20as%20a%20base%20class

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Damon54
2 months, 3 weeks ago
base class objects (class) is correct ( more accurate )
upvoted 1 times
...
seaverick
3 months ago
Selected Answer: C
class A: pass class B(A): pass print(B.__bases__) #output (<class '__main__.A'>,) Ans is C
upvoted 1 times
...
angelika_az
1 year, 11 months ago
Selected Answer: B
B correct
upvoted 2 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 ...