Question 6/17
advanced
Select one answer

What is the purpose of __slots__ in a Python class?

To define time slots for execution
To restrict attributes and reduce memory usage
To create slots for database storage
To define method signatures

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.