Question Bank

Interview Practice Questions

1,600+ practice questions organized by topic, company tag, and difficulty.

1635
questions
16
categories
50
companies

Showing 20 of 1635 questions

HardPython

What are metaclasses and what are they used for?

metaclassesadvanced
Practice in bot
HardPython

Explain the concept of descriptors and how they implement the __get__ and __set__ interfaces.

descriptorsadvanced
Practice in bot
HardPython

What is MRO (Method Resolution Order) and how does C3 linearization work?

mroinheritance
Practice in bot
EasyPython

Explain the difference between decorators with arguments and without arguments.

decorators
Practice in bot
MediumPython

When should you use asyncio instead of threading?

asynciothreading
Practice in bot
MediumPython

How do descriptors work in Python and where can they be useful?

descriptors
Practice in bot
MediumPython

Explain how garbage collection works in Python and what reference counting is.

memory managementgc
Practice in bot
MediumPython

What are the advantages of using dataclasses over NamedTuple?

dataclassesnamedtuple
Practice in bot
HardPython

Explain how MRO (method resolution order) works in Python.

mro
Practice in bot
HardPython

When should __slots__ be used and what are its limitations?

slots
Practice in bot
HardPython

Explain how the context manager mechanism works in Python.

context managers
Practice in bot
EasyPythonNNS

How would you rate your Python skills?

lang-python
Practice in bot
EasyPythonNNS

What is a list comprehension in Python?

lang-python
Practice in bot
MediumPythonNNS

How do generators differ from collections in Python?

lang-python
Practice in bot
EasyPythonNNS

What is the difference between set and frozenset in Python?

lang-python
Practice in bot
EasyPythonNNS

Which can be used as a dictionary key: set or frozenset?

lang-python
Practice in bot
MediumPythonNNS

Why is it dangerous to use a mutable object as a function argument's default value?

lang-python
Practice in bot
EasyPythonNNS

How does exception handling work in Python with try, except, else, and finally?

lang-python
Practice in bot
HardPythonNNS

How are generators related to asynchronous programming in Python?

lang-python
Practice in bot
EasyPythonNNS

What are dunder methods, or magic methods, in Python?

lang-python
Practice in bot

Prepare for your next interview with Vibe Interview.

Download Vibe Interview
Question Bank — page 60 | Vibe Interview