Python Interview Questions 2019
2 min readMay 9, 2019
Hi Readers,
Writing the post after a long time, was looking out for job opportunities.
Facing around 10–15 interviews, I have experienced some of the common interview questions asked from a Python Developer and thought of creating a list of these questions.
I have also started the Series on Interview Experience on my channel, do have a look at it
Will create a separate post for answers as well. Here is the list of interview questions for python interviews:
- Which version of python have you worked with?
- What are MAGIC methods?
- What are DECORATORS?
- Write a decorator to add a ‘$’ sign to a number.
- What are the different data types in python?
- What are mutable and immutable data types?
- Difference between list and tuples?
- Which one is faster to access list or a tuple and why?
- What is list comprehension?
- What is the use of negative indexing in the list?
- Why do we need list comprehension? How is it different from creating a list using a loop
- What are SETS in python? How are they different from LISTS?
- How SETS are internally stored in python?
- Which data types can be used as a key in a dictionary?
- Why SETS are faster to search than LIST?
- How do we create classes in python?
- What is the difference between a class method and static method?
- What is the first argument passed to the methods inside the class?
- Can we use a name other than self as the first argument?
- What are meta classes?
- What is the __init__ method?
- When is the memory allocated to an object of a class?
- How an object is created?
- How python supports multiple inheritance?
- What is object class?
- Is python multithreaded?
- Difference between multithreading and multiprocessing
- What is GIL?
- How can we achieve multithreading and multiprocessing in Python?
- What are Gevents?
- What is Cpython ,Cython Jython?
- What design patterns have you implemented in python/
- How sort method inside the list different from the generic sorted method of python?
- What are generators and iterators?
- How to use map, reduce and filter functions in python?
Hope it helps!!