Interview questions

Python interview questions – page 2

168 questions. Tap “Show answer” to check yourself.

  1. Mention the use of the split function in Python?

  2. What is a docstring?

  3. How python manage memory?

  4. Is python statically typed or dynamically typed?

  5. How does Python handle the memory management?

  6. What is the best Django or PHP?

  7. Why python is referred as glue code?

  8. How can you copy an object in Python?

  9. What are the advantages of Python Recursion?

  10. What is Python Set?

  11. What is the comment tag in Python ?

  12. Mention what is the difference between Django, Pyramid, and Flask.

  13. What is unittest in Python?

  14. Why do we need Python Directories

  15. How can you sort a list?

  16. Mention what are the rules for local and global variables in Python?

  17. Why Should We Use File Operation?

  18. How can you share global variables across modules?

  19. What a blank curly brace initialize? A dictionary or a set?

  20. How are arguments passed by value or by reference?

  21. What is the difference between Xrange and range?

  22. What are the differences between del keyword and clear() function?

  23. What is module and package in Python?

  24. What is Dict and List comprehensions are?

  25. How you can convert a number to a string?

  26. What is the optional statement used in a try except statement in Python?

  27. When you need ordered container of things, which will be manipulated, use lists?

  28. What is the language from which Python has got its features or derived its features?

  29. Why cannot lambda forms in Python contain statements?

  30. Is there any tool used to find bugs or carrying out static analysis?

Companies that ask Python questions