

MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following is false about protected class members? |
A. | tThey begin with one underscore |
B. | tThey can be accessed by subclasses |
C. | tThey can be accessed by name mangling method |
D. | tThey can be accessed within a class |
Answer» D. tThey can be accessed within a class | |
2. |
The purpose of name mangling is to avoid unintentional access of private class members. |
A. | tTrue |
B. | tFalse |
Answer» B. tFalse | |
3. |
Private members of a class cannot be accessed. |
A. | tTrue |
B. | tFalse |
Answer» C. | |