Python Interview
Python Interview
1. String and List Manipulation : (Slicing and Indexing) http://jessenoller.com/good-to-great-python-reads/ 1. Regex Search vs Match
2. Difference between List and Tuple http://www.toptal.com/python/top-10-mistakes-that-python-programmers-make
3. Difference between range and xrange http://www.programiz.com/python-programming/property
4. Difference between list append and extend method 1. Difference between positioning and keyword arguments
5. Changes in Python 3x as compared with Python 2x https://www.youtube.com/playlist?list=PL1Z_7yg6Pa3CURAEFLwzXRYrhGcQskRhY
6. Advantages of Python over Java Programs that every software engineer should solve within 1 hr
7. Disadvantages of Python over Java http://learnpythonthehardway.org/book/
8. List Comprehension
9. Recursion :
a. Sum of list
b. Factorial
c. Reverse a string
10. Filter, map and reduce (with example)
11. Set Methods
12. Frozenset
13. lamda function
14. Python Decorators and Python Decorators with Arguments
15. Python Inbuilt Decorators
16. Difference between staticmethod and classmethod
17. Difference between new style classes and old style classes in Python
18. What is metaclasses in Python?
19. What is method starting with __ and mehtods starting with _ and ending with the same http://igorsobreira.com/2010/09/16/difference-between-one-underline-and-two-underlines-in-python.html
20. What is self in Python?
21. What is Property in Python?
22. What are Python attributes?
23. What are Python Descriptors?
24. What is @property decorator?
25. How memory is allocated in Python?
26. What are Python Data types and data structures?
27. What is the use of python struct library?
28. Sorting the list using any sorting algorithm
29. Regular expresion for mobile, email, ip address etc
30. Pickling and unpickling in Python
31. Exceptions in Python :
a List of all inbuilt exceptions in python
b. can we create customized exceptions in python(user defined) if yes how?
32. Threading in Python
33. Libraries in Python for threading.
34.Difference between sql and nosql
35.swap the number in python
36.Python zip function
37. negative index in list
38. __init__ vs __new__ method
39. Explain try and catch and else
40. ABC in python
41. How to make class iterable
42. forelse in python
43.Conditional Import in Python
44. Reverse a string in python ex: if String is "Python is good" output should "good is
Python"
45. Which function in inheritance get call if both parent class has same function:
Class A(object):
def override():
print "Class A"
Class B(object):
def override():
print "Class B"
Class C(A,B):
def override():
super(C,self).override()
print "Class C"