Interview questions

Python interview questions – page 5

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

  1. What does yield function do? what is the difference between return and yield?

  2. What is the use of join() for a string rather than list or tuple method?

  3. What is the process of compilation and linking in python?

  4. What is the procedure to extract values from the object used in python?

  5. What are the steps required to make a script executable on Unix?

  6. Describe how to generate random numbers in Python.

  7. How do we make python scripts executable?

  8. Explain how to make Forms in python.

  9. Describe how to implement Cookies for Web python.

  10. Describe how to use Sessions for Web python.

  11. What is a negative index in python?

  12. Explain how to create a multidimensional list.

  13. Explain how to overload constructors (or methods) in Python.

  14. Describe how to send mail from a Python script.

  15. How can I find the methods or attributes of an object in python?

  16. How do I convert a string to a number?

  17. How is memory managed in python?

  18. Explain how to copy an object in Python.

  19. Are you ready to learn python scripting

  20. How do you make an array in Python?

  21. How can I overload constructors (or methods) in Python?

  22. How stable is Python?

  23. How do I copy an object in Python?

  24. How can I find the methods or attributes of an object?

  25. How do I submit bug reports and patches for Python?

  26. Why are Python strings immutable?

  27. Why is it called Python?

  28. What are the rules for local and global variables in Python?

  29. How can I pass optional or keyword parameters from one function to another?

  30. I want to do a complicated sort: can you do a Schwartzman Transform in Python?

Companies that ask Python questions