Home
Materials
Blog
Pricing
For HR β
πΊπΈ
English
Home
Positions
Senior Python Developer
Senior Python Developer
Description
Interview questions for Senior Python Developer
Interview Questions (80)
Q1
Do you agree that Python is often called an easy language?
Motivational
Q2
What are the pitfalls and limitations of Python?
Technical
Q3
How does a framework differ from a library?
Technical
Q4
How do you keep a large codebase maintainable?
Technical
Q5
What is monkey patching? Is it ever a good idea?
Technical
Q6
How are dict and set implemented? What's the lookup complexity and the memory cost?
Technical
Q7
Does Python support multiple inheritance? How does it solve the diamond problem?
Technical
Q8
What is the MRO and how does it work?
Technical
Q9
Does Python have an assignment operator? How is assignment different from C or C++?
Technical
Q10
What are descriptors? How do they differ from decorators?
Technical
Q11
Are function arguments passed by value or by reference?
Technical
Q12
What are .pth files?
Technical
Q13
Which objects in Python 3.12 are made immortal and why was that worth doing?
Technical
Q14
What problem does Python 3.12's new syntax for generics and a type statement solve that TypeVar didn't?
Technical
Q15
You've inherited a large untyped codebase and you're asked to add type checking. How would you sequence that work?
Experience
Q16
You have a memory leak in a production application. How do you find and fix it?
Situational
Q17
You need to process a file that doesn't fit in memory. How?
Situational
Q18
How would you profile a Python application?
Technical
Q19
What is __pycache__, and why does Python generate .pyc files?
Technical
Q20
What is string interning? Why does Python use it?
Technical
Q21
Why doesn't Python optimize tail recursion? How would you get the same effect?
Technical
Q22
You're asked to optimize a Python web application under high load. How do you approach it?
Situational
Q23
What does the PYTHONOPTIMIZE flag do?
Technical
Q24
What advantages do NumPy arrays have over nested Python lists?
Technical
Q25
How do you distribute Python code effectively?
Technical
Q26
How does Python handle binary dependencies? What are wheels and eggs?
Technical
Q27
What package managers does Python have, and which would you recommend?
Technical
Q28
How do you handle transitive dependencies?
Technical
Q29
What are Cython, IronPython and PyPy? Why do alternative implementations exist?
Technical
Q30
How do you call C from Python, and Python from C?
Technical
Q31
Is Python a functional programming language?
Technical
Q32
What are the pitfalls of writing functional code in Python?
Technical
Q33
How do you implement immutability and higher-order functions in Python?
Technical
Q34
What is the difference between concurrency and parallelism?
Technical
Q35
What is the GIL, and how does it affect concurrency and async?
Technical
Q36
What are sub-interpreters, and how do they differ from threads and from separate processes?
Technical
Q37
Compare async programming, multithreading and multiprocessing.
Technical
Q38
A producer thread generates data faster than a consumer can process it. How do you handle it?
Situational
Q39
How do you debug async code?
Technical
Q40
What is backpressure in async systems, and how do you handle it?
Technical
Q41
How can async programming improve the scalability of a web application?
Motivational
Q42
Write a producer-consumer pattern with asyncio.Queue, with multiple producers and consumers.
Technical
Q43
How would you design a high-performance async API server?
Technical
Q44
How do you integrate async code with synchronous libraries?
Technical
Q45
What are the limitations of async programming in Python?
Technical
Q46
Give an example of filter and reduce over an iterable.
Technical
Q47
Write a function that reverses a generator.
Technical
Q48
Implement a function with a "static variable" (for example, a call counter) without writing any code outside the function.
Technical
Q49
Which methods are called, and in what order, when print(A() + B()) runs?
Technical
Q50
Implement a dictionary from scratch using core Python.
Technical
Q51
What is the output of this code?
Technical
Q52
Put these functions in order of efficiency. How would you test your answer?
Technical
Q53
Write a one-liner that counts capital letters in a file, even if the file doesn't fit in memory.
Technical
Q54
What is the output of this code? Why? Is this inheritance?
Technical
Q55
How is this possible?
Technical
Q56
What is wrong with this code? Why would it be needed?
Technical
Q57
What are the differences between a list and a tuple in Python?
Technical
Q58
What is a namespace?
Technical
Q59
What are Python modules? What are they used for?
Technical
Q60
Specify the difference between local and global variables.
Technical
Q61
Is Python case-sensitive?
Technical
Q62
Does Python require indentation?
Technical
Q63
What are Python functions?
Technical
Q64
Why do Python developers use continue, break, and pass?
Technical
Q65
What are ways to generate a random number in Python?
Technical
Q66
What are iterators in Python?
Technical
Q67
What are Python documentation strings?
Technical
Q68
Explain the use of subn(), sub(), and split() in the 're' module.
Technical
Q69
Why do developers prefer NumPy arrays over Python lists?
Technical
Q70
How does Python approach multithreading?
Technical
Q71
What is inheritance? Name the main types of Python inheritance.
Technical
Q72
Define monkey-patching.
Technical
Q73
Define polymorphism in Python.
Technical
Q74
What are the differences between the three popular libraries: Django, Flask, and Pyramid?
Technical
Q75
What is the use of the map function in Python?
Technical
Q76
What are the differences between Wheels and Eggs?
Technical
Q77
What is the purpose of Python non-local statements?
Technical
Q78
How do developers use 'with' in Python?
Technical
Q79
How is Python exception handling different from that in Java?
Technical
Q80
Name the differences between functional and object-oriented programming.
Technical
Copy