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