Python面试常见的问题

So if you are looking forward to a Python Interview, here are some most probable questions to be asked in the interview that will help:

  1. What is the difference between deep and shallow copy?
  2. Write a program to find out the name of an object in python.
  3. How can the ternary operators be used in python?
  4. What is the function of negative index?
  5. Write a program to check whether the object is of a class or its subclass.
  6. How are the functions help() and dir() different?
  7. Which command do you use to exit help window or help command prompt?
  8. Does the functions help() and dir() list the names of all the built-in functions and variables? If no, how would you list them?
  9. Explain how Python does Compile-time and Run-time code checking?
  10. Whenever Python exists whyall the memory does is not de-allocated / freed when Python exits?
  11. What makes Python differ from other programming languages?
  12. Python is interpreted and interactive. How?
  13. What is the use of Python?
  14. What is a board standard library of python?
  15. What makes python portable?
  16. How does it manage the memory?
  17. What is pickling and unpickling?
  18. How are arguments passed?
  19. 19What is python namespace?
  20. What is PYTHONSTARTUP environment variable?
  21. Name a module that is not included in python by default
  22. What is __init__.py used for?
  23. When is pass used for?
  24. What is a docstring?
  25. What is list comprehension?
  26. What is map?
  27. What is the difference between a tuple and a list?
  28. What would the following code yield?
  29. Optimize these statements as a python programmer.
  30. Write a program to print all the contents of a file
  31. Explain delegation in Python
  32. What is the function of “self”?
  33. How is “self” explicitly defined in a method?
  34. What is the use of join() for a string rather than list or tuple method?
  35. What is the process of compilation and linking in python?

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

  1. What are the steps required to make a script executable on Unix?
  2. Explain Python’s zip() function.?
  3. Explain Python’s pass by references Vs pass by value . (or) Explain about Python’s parameter passing mechanism?
  4. As Everything in Python is an Object, Explain the characteristics of Python’s Objects.
  5. Explain how to overload constructors or methods in Python
  6. Which statement of Python is used whenever a statement is required syntactically but the program needs no action?
  7. What is Web Scraping? How do you achieve it in Python?
  8. What is a Python module?
  9. Name the File-related modules in Python?
  10. Name the File-related modules in Python?
  11. Explain all the file processing modes supported by Python?
  12. Is python a case sensitive language?
  13. What are tuples in Python?
  14. What is the difference between tuples and lists in Python?
  15. What are python dictionaries?
上一篇:C#操作Cookie


下一篇:[论文阅读]VERY DEEP CONVOLUTIONAL NETWORKS FOR LARGE-SCALE IMAGE RECOGNITION(VGGNet)