Question Bank
Interview Practice Questions
1,600+ practice questions organized by topic, company tag, and difficulty.
HardPython
What are metaclasses and what are they used for?
metaclassesadvanced
Practice in botHardPython
Explain the concept of descriptors and how they implement the __get__ and __set__ interfaces.
descriptorsadvanced
Practice in botHardPython
What is MRO (Method Resolution Order) and how does C3 linearization work?
mroinheritance
Practice in botEasyPython
Explain the difference between decorators with arguments and without arguments.
decorators
Practice in botMediumPython
When should you use asyncio instead of threading?
asynciothreading
Practice in botMediumPython
How do descriptors work in Python and where can they be useful?
descriptors
Practice in botMediumPython
Explain how garbage collection works in Python and what reference counting is.
memory managementgc
Practice in botMediumPython
What are the advantages of using dataclasses over NamedTuple?
dataclassesnamedtuple
Practice in botHardPython
Explain how MRO (method resolution order) works in Python.
mro
Practice in botHardPython
When should __slots__ be used and what are its limitations?
slots
Practice in botHardPython
Explain how the context manager mechanism works in Python.
context managers
Practice in botEasyPythonNNS
How would you rate your Python skills?
lang-python
Practice in botEasyPythonNNS
What is a list comprehension in Python?
lang-python
Practice in botMediumPythonNNS
How do generators differ from collections in Python?
lang-python
Practice in botEasyPythonNNS
What is the difference between set and frozenset in Python?
lang-python
Practice in botEasyPythonNNS
Which can be used as a dictionary key: set or frozenset?
lang-python
Practice in botMediumPythonNNS
Why is it dangerous to use a mutable object as a function argument's default value?
lang-python
Practice in botEasyPythonNNS
How does exception handling work in Python with try, except, else, and finally?
lang-python
Practice in botHardPythonNNS
How are generators related to asynchronous programming in Python?
lang-python
Practice in botEasyPythonNNS
What are dunder methods, or magic methods, in Python?
lang-python
Practice in botPrepare for your next interview with Vibe Interview.
Download Vibe Interview