esasy
1. Mention five benefits of using Python?
esasy
2. What is polymorphism?
esasy
3. How to print string in reverse order?
esasy
4. Why Python is not that much of popular, when compared to other programming languages?
esasy
5. How do I call a method defined in a base class from a derived class that overrides it?
esasy
6. How do I convert a number to a string?
esasy
7. What is the built-in function used in Python to iterate over a sequence of numbers?
esasy
8. What is a Python module?
esasy
9. How to display the contents of text file in reverse order?How will you reverse a list?
esasy
10. Which of the following is an invalid statement?
esasy
11. Name few Python modules for Statistical, Numerical and scientific computations?
esasy
12. What is a dictionary in Python?
esasy
13. How is a Python class instantiated?
esasy
14. What happens if an error occurs that is not handled in the except block?
esasy
15. What is a namespace in Python?
esasy
16. Name the four main types of namespaces in Python?
esasy
17. When would you use a break statement in a for loop?
esasy
18. What are The Data Types Supports in Python Language?
esasy
19. Explain the use of try: except: raise, and finally:
medium
20. How can I organize my code to make it easier to change the base class?
medium
21. How do you perform pattern matching in Python? Explain.
medium
22. How do I find the current module name?
medium
23. What is used to create Unicode string in Python?
medium
24. Does Python have a switch-case statement?
medium
25. What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?
medium
26. Write a regular expression that will accept an email id. Use the re module.
medium
27. What is Garbage Collection?
medium
28. What Are The Types of Objects Support in Python Language?
medium
29. Is it possible to assign multiple var to values in list?
medium
30. Python is Call by Value or Call by Reference? How are arguments passed by value or by reference?
medium
31. What is difference between tuple and list ? Where will you use tuple and where will you use list ?
medium
32. Explain Python’s parameter-passing mechanism.
medium
33. Explain the use "with" statement in python?
medium
34. How can I pass optional or keyword parameters from one function to another?
medium
35. How do I copy a file? How to copy object in Python? Diff between shallow copy and deep copy?
medium
36. What are *args, **kwargs?
medium
37. What is the purpose of PYTHONSTARTUP,PYTHONCASEOK,PYTHONHOME & PYTHONPATH environment variables?
medium
38. What is map function in Python?
medium
39. What is Hierarchical Inheritance?
medium
40. Does Python supports interfaces like in Java? Discuss.
medium
41. What are Accessors, mutators, @property?
medium
42. Explain split(), sub(), subn() methods of re module in Python.
medium
43. How to get indices of N maximum values in a NumPy array?
medium
44. What is TkInter?
medium
45. Name few methods that are used to implement Functionally Oriented Programming in Python?
medium
46. Differentiate between append() and extend() methods.?
medium
47. What is a closure in Python?
medium
48. What is the output of the following?
medium
49. How to retrieve data from a table in MySQL database through Python code? Explain.
medium
50. Write a Python program to count the number of lines in a text file.
medium
51. What is the PYTHONPATH variable?
medium
52. Explain the ternary operator in Python.
medium
53. What is slicing?
medium
54. Explain the //, %, and ** operators in Python.
medium
55. What is a namedtuple?
medium
56. How do you take input in Python?
medium
57. How would you generate a random number in Python?
medium
58. What is recursion?
medium
59. How is a .pyc file different from a .py file?
medium
60. What is JSON? Describe in brief how you’d convert JSON data into Python data?
medium
61. What happens if output an else statement after after block?
medium
62. Explain the differences between local and global namespaces.
medium
63. When would you use a continue statement in a for loop?
medium
64. What is the Dictionary?
medium
65. What is a Tuple?
medium
66. What is the Difference Between Methods & Constructors?
medium
67. What are the tools that help to find bugs or perform static analysis?
medium
68. How can you swap the values of two variables with a single line of Python code?
medium
69. What is the most efficient way to concatenate many strings together?
medium
70. How do I create a multidimensional list?
medium
71. What’s a negative index?
medium
72. How do you remove duplicates from a list?
medium
73. How do I call a method defined in a base class from a derived class that overrides it?
medium
74. How do I share global variables across modules?
medium
75. What’s up with the comma operator’s precedence?
medium
76. How can I pass optional or keyword parameters from one function to another?
medium
77. What is the difference between arguments and parameters?
hard
78. Why isn't all memory freed when Python exits?
hard
79. What are some drawbacks of the Python language?
hard
80. How is memory managed in Python?
hard
81. What are some key differences to bear in mind when coding in Python vs. Java?
hard
82. What does the function zip() do?
hard
83. What is Monkey patching ? Give example?
hard
84. What happens when a function doesn’t have a return statement? Is this valid?
hard
85. What is Threads Life Cycle?
hard
86. How Python is interpreted?
hard
87. Explain how you can minimize the Memcached server outages in your Python Development?
hard
88. My program is too slow. How do I speed it up?
hard
89. How do I create static class data and static class methods?
hard
90. How can I organize my code to make it easier to change the base class?
hard
91. Why do lambdas defined in a loop with different values all return the same result?