Python Interview Questions

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.

Will create a  separate post for answers as well. Here is the list of interview questions for python interviews:


  1. Which version of python have you worked with?
  2. What are MAGIC methods?
  3. What are DECORATORS?
  4. Write a decorator to add a '$' sign to a number.
  5. What are the different data types in python?
  6. What are mutable and immutable data types?
  7. Difference between list and tuples?
  8. Which one is faster to access list or a tuple and why?
  9. What is list comprehension?
  10. What is the use of negative indexing in the list?
  11. Why do we need list comprehension? How is it different from creating a list using a loop
  12. What are SETS in python? How are they different from LISTS?
  13. How SETS are internally stored in python?
  14. Which data types can be used as a key in a dictionary?
  15. Why SETS are faster to search than LIST?
  16. How do we create classes in python?
  17. What is the difference between a class method and static method?
  18. What is the first argument passed to the methods inside the class?
  19. Can we use a name other than self as the first argument?
  20. What are meta classes?
  21. What is the __init__ method?
  22. When is the memory allocated to an object of a class?
  23. How an object is created?
  24. How python supports multiple inheritance?
  25. What is object class?
  26. Is python multithreaded?
  27. Difference between multithreading and multiprocessing
  28. What is GIL?
  29.  How can we achieve multithreading and multiprocessing in Python?
  30. What are Gevents?
  31. What is Cpython ,Cython Jython?
  32. What design patterns have you implemented in python/
  33. How sort method inside the list different from the generic sorted method of python?
  34. What are generators and iterators?
  35. How to use map, reduce and filter functions in python?
Hope it helps!!



Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Does your website have a contact page? I’m having problems locating
    it but, I’d like to send you an e-mail. I’ve got some
    ideas for your blog you might be interested in hearing.

    Either way, great blog and I look forward to seeing it grow over time.

    luxury cars on rent in Jaipur

    ReplyDelete

Post a Comment

Popular posts from this blog

Word Vectorization

Spidering the web with Python

Machine Learning -Solution or Problem