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

When and why should you use __slots__ in classes?

slots
Practice in bot
MediumPython

When and why should you use decorators with arguments?

decoratorsarguments
Practice in bot
EasyPython

What are generators and how does the yield operator work?

generatorsyield
Practice in bot
MediumPython

Compare dataclasses and NamedTuple. In what cases is it better to use each?

dataclassesnamedtuple
Practice in bot
MediumPython

How does reference counting work in Python?

memory managementreference counting
Practice in bot
HardPython

What are metaclasses and how are they used in Python?

metaclasses
Practice in bot
HardPython

Explain how __slots__ work and how they help with memory management.

__slots__memory management
Practice in bot
MediumPython

How does a context manager work and what advantages does it provide?

context manager__enter____exit__
Practice in bot
HardPython

What are ABC and how are they used to create abstract base classes?

abcabstract classes
Practice in bot
EasyPython

Explain how the GIL works in Python and how it affects multithreading.

gilmultithreading
Practice in bot
EasyPython

What are decorators with arguments and how do they differ from regular decorators?

pythondecorators
Practice in bot
MediumPython

Compare dataclasses, NamedTuple, and attrs. What are the advantages and disadvantages of each?

dataclassesnamedtupleattrs
Practice in bot
MediumPython

Explain how memory management works in Python, including reference counting and garbage collection.

gcmemory management
Practice in bot
HardPython

What are metaclasses in Python, and how do they differ from regular classes?

metaclasses
Practice in bot
HardPython

Explain how descriptors work, including the __get__ and __set__ methods.

descriptors
Practice in bot
HardPython

What is MRO and how does C3 linearization work in Python?

mro
Practice in bot
MediumPython

What are the differences between list comprehension and generator expression in Python?

list comprehensiongenerator expression
Practice in bot
MediumPython

How does the walrus operator work and in what cases should it be used?

walrus operator
Practice in bot
EasyPython

Explain how generators work and what their advantages are over regular functions.

generatorsyield
Practice in bot
MediumPython

Compare dataclasses, NamedTuple, and attrs. What are their main differences and when should each be used?

dataclassesnamedtupleattrs
Practice in bot

Prepare for your next interview with Vibe Interview.

Download Vibe Interview
Question Bank — page 59 | Vibe Interview