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

Exam PCAP topic 1 question 66 discussion

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

If any of a class's components has a name that starts with two underscores (___), then:

  • A. the class component's name will be mangled
  • B. the class component has to be an instance variable
  • C. the class component has to be a class variable
  • D. the class component has to be a method
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://hackernoon.com/understanding-the-underscore-of-python-309d1a029edc

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Janpcap123
2 weeks, 5 days ago
Absolutely A is the answer.
upvoted 1 times
...
macxsz
3 months, 2 weeks ago
Selected Answer: A
A. the class component's name will be mangled
upvoted 1 times
...
AlMargoi
4 months, 2 weeks ago
Selected Answer: A
I think answer is A
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 ...