0% found this document useful (0 votes)
149 views6 pages

The Viral Code: Python Interview Questions

The document lists 36 Python interview questions covering topics like data structures, dynamic typing, objects, call by reference vs value, dictionaries, args and kwargs, classes vs instances, files, map vs reduce vs filter, lambda functions, list comprehensions, generators, iterators, inheritance, threading and concurrency, decorators, memory management, regular expressions, and frameworks. It encourages learning Python by finding answers to the questions rather than just reading explanations.

Uploaded by

sulavojha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views6 pages

The Viral Code: Python Interview Questions

The document lists 36 Python interview questions covering topics like data structures, dynamic typing, objects, call by reference vs value, dictionaries, args and kwargs, classes vs instances, files, map vs reduce vs filter, lambda functions, list comprehensions, generators, iterators, inheritance, threading and concurrency, decorators, memory management, regular expressions, and frameworks. It encourages learning Python by finding answers to the questions rather than just reading explanations.

Uploaded by

sulavojha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

The Viral Code

Python Interview Questions


Vivek Education, Engineering, Interview, Programming, Python, Technical April 16, 2017 1 Minute

I had compiled some Python Interview Questions.

This List might come handy to both Interviewer and Interviewee.

1. What are Mutable and Immutable Data structures in Python ?

2. What are tuples ?

3. What is di erence between tuple and list ? Where will you use tuple and where will you use
list ?

4. What is Dynamic Typing ?

5. Justify this statement : Everything is object in Python ?

6. Python is Call by Value or Call by Reference ?

7. How do you create a dictionary which can preserve the order of pairs?

8. Can you use mutable Data Structure as key in Dictionaries ?


9. What is the use of enumerate() in Python?

10. What are *args, **kwargs ?

11. How instance variables are different from class variables?

12. Differentiate between “*.py” file and “*.pyc” file?

13. Explain difference between Map vs Reduce Vs Filter ?

14. What are Lamda Functions ?

15. What is List comprehension ?

16. What is __init__ functions ?

17. What are Generators ?

18. What are Iterators ?

19. Can generator be used to create Iterators ? Give example

20. Can iterators be used to create generator ?

21. Differentiate between Range and Xrange ?

22. What is Method Resolution Order ?

23. Python supports Multi-Level Inheritance or Multiple Inheritance or Both ?

24. Does Python supports multi-threading ?

25. What is multi-threading? What is GIL(Global interpreter lock) issue ?

26. What are decorator ? How to create custom decorator ?

27. How memory is managed in Python ?

28. How does Python’s garbage collection work?

29. What are Regular Expressions ?

30. Differentiate between append() and extend() methods ?

31. What is Web Scraping? How do you achieve it in Python?

32. Explain the use “with” statement in python?

33. What are Middlewares ?

34. What is Monkey patching ? Give example ?

35. What’s the difference between py2.x and py3.x ?

36. Give examples of Python Framework ?

Though i won’t go in explanation as i think , To learn any Programming Language you need
to throw some efforts. So try finding the answers. Ref : Python Org
Report this ad Report this ad

Share this:

 1 

Loading...

Related
Published by Vivek
I am Vivek Joshi. Currently living in Pune. I am working as python Developer for New York Based
startup, Verificient technologies. The technical skills which I have are Python, Django, Javascript,
Jquery, AngularJS. I prefer to do all my development on Ubuntu as i just love the OS and the
flexibility it offers to developer. View all posts by Vivek

A Friend Who
Got Leh’d

How to create Auto Destroying Messages in Django ?

Leave a Reply
Enter your comment here...
Report this ad

Search …

Recent Posts

Top Django Interview Questions

How to Rename Remote GIT branch

How to send messages using Python

Balanced Parentheses Check | Python

Find the largest continuous sum | Python

Follow Blog via Email

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 15 other followers

Enter your email address

Follow
Report this ad

Blog at WordPress.com.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy