Wednesday, August 17, 2022

Python Interview Questions

 


1. list vs tuple ?

2. Decorator ? give an example

3. List Comprehension , Dict comprehension , and generator ?

4. how memory manged in python ?

5. diff beween generator and iterator ? yield

6. __init__ , __iter__ , __next__

7.module vs library

8. range vs xrange

9.Python Anonymous/Lambda Function

10. inbuild datat types - mutable immutable

11. ternary operator , global local

12.inheritance, classses,objeects , self , abstraction ,encpasulation

13. pickling and unpickling

14. list,tuple,set , dicts . empty initilaizations , diffrent methods

15. *arhgs vs **kwargs

16. open and with statemnt

17. read and write files in pythpn

18. pythonpath, interpreter, garabge collector , py vs .pyc

19. expcetoion, try execpet, finally

20. python2 vs python3 , pip , 

21. get all keys in dict

22. diamond problem ?? super() 

23. array , slicing , string manipulation , arry vs List

24. how concatemate tow tuples ??

15 , _a , __a ,__a__ ?

16. copy and delete dict

27.Lambda func , higher order func

18. multi threading and multiprocessing in python

29. GIL , global interpreter lock

30. class and object,namespaces 

31 unit tests

32 map,reduve

33. monkey patching in python

34. shallow copy vs deep copy

25 operator overloading and dunder methods


bytearry vs bytes , memoryview

=====================================================


https://www.fullstack.cafe/blog/advanced-python-interview-questions

https://www.zeolearn.com/interview-questions/python