Quiz Stack
  • About
  • Basics
  • Input & Output
  • Operators
  • Operators II
  • Strings
  • Lists
  • Tuples
  • Sets
  • Dictionaries
  • Control Flow
  • Functions
  • Functions II
  • Modules & Packages
  • Error Handling
  • Object-Oriented Programming (OOP)
  • Object-Oriented Programming (OOP) II
  • Advanced Data Handling
  • Advanced Data Handling II
  • File Handling
  • Pythonic Features
  • Modules & Libraries
  • Modules & Libraries II
  • Concurrency & Performance
  • Advanced Topics
  • Advanced Topics II
Quiz Stack

© 2026 Quiz. All Rights Reserved.

  • Terms and condition
  • Privacy Policy
  • Contact Page

Ready to Level Up?

Test your knowledge on Python OOP II Quiz: Encapsulation, Polymorphism, Dunder Methods, and Class/Static Methods. This quiz contains 10 questions.

Level: Beginner
Topic: oop-ii

Name mangling for 'private' attributes

In Python, what happens when you define an instance attribute with a double underscore prefix, like `self.__balance` inside a class? Choose the most accurate statement.

Question 01 / 10