Skip to content
Sharp

Python Internals · interview question

Which naming or modeling choice is strongest for properties and descriptors?

Multiple choiceHardchapter-19-curatedpremiumpython-internalsproperties-and-descriptors
python
class InventoryItem:
    @property
    def available(self) -> bool:
        return self.stock > 0
Choose one answer
Answer and explanation

Correct answer

C. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on Python Internals

A free test with instant, explained results. No account needed.

Start free test
All Python Internals questions →