In Python, a class member prefixed with two underscores, such as __memberName, is conventionally considered as _______.
- Private Member
- Public Member
- Protected Member
- Hidden Member
In Python, a class member prefixed with two underscores (e.g., __memberName) is conventionally considered a "private" member. It's a way to indicate that the member should not be accessed directly from outside the class.
Loading...
Related Quiz
- Which Python module provides functionality to read and write data in CSV format?
- You are developing a test suite using the unittest framework and need to share the same setup code across multiple test cases. Which method would you use?
- A program is intended to print all even numbers between 1 to 10 but instead, it prints all numbers between 1 to 10. What control structure might be missing or misused?
- The ____ function in Python’s time module can be used to measure the elapsed time and is useful for profiling.
- In Flask, how would you access the data sent with a POST request?