Python_Institute
PCAP-31-03 · Question #158
If any of a class's components has a name that starts with two underscores (___), then:
The correct answer is A. the class component's name will be mangled. See the full explanation below for the reasoning.
Question
If any of a class's components has a name that starts with two underscores (___), then:
Options
- Athe class component's name will be mangled
- Bthe class component has to be an instance variable
- Cthe class component has to be a class variable
- Dthe class component has to be a method
How the community answered
(57 responses)- A70% (40)
- B4% (2)
- C7% (4)
- D19% (11)
Community Discussion
No community discussion yet for this question.