Question Bank
Python interview questions
Working Python code does not by itself explain memory behavior, iteration or mutable objects. Use these questions to review language mechanisms. Support your answer with a small example and predict the result before running it.
Showing 20 of 114 questions
What is GIL and how does it affect multithreading in Python?
Explain the difference between multiprocessing and threading in Python.
Explain what async/await is and how the event loop works.
Compare dataclasses, NamedTuple, and attrs. What are their differences?
What are descriptors and how do they work with __get__ and __set__?
When and why should you use decorators with arguments?
Compare dataclasses and NamedTuple. In what cases is it better to use each?
How does reference counting work in Python?
Explain how __slots__ work and how they help with memory management.
How does a context manager work and what advantages does it provide?
What are ABC and how are they used to create abstract base classes?
Explain how the GIL works in Python and how it affects multithreading.
What are decorators with arguments and how do they differ from regular decorators?
Compare dataclasses, NamedTuple, and attrs. What are the advantages and disadvantages of each?
Prepare for your next interview with Vibe Interview.
Download Vibe Interview