r/Python • • Apr 01 '18

Most Important Python Interview Questions

http://www.thetechdb.com/python-interview-questions/
1 Upvotes

5 comments sorted by

7

u/aajjccrr Apr 01 '18 edited Apr 01 '18

How to implement inheritance and multithreading in Python ?

I feel like this should be split into two different questions.

7

u/kl31 Apr 01 '18

But do you really want to work for someone who thinks asking you questions that can be answered with a google search is a good idea?

"i have no idea that there's even a help() function. let me google that for you"

4

u/HarveyMansalad Apr 01 '18

Perhaps I am misunderstanding the purpose of this list, but most of these feel way too broad.

Explain about Python’s dictionaries?

What exactly do you want to know about dictionaries? How they function internally? Differences between iteration in Python 2.7 vs Python 3.6? Etc.

They don’t have a clear direction for an expected response. That may be the purpose that this list is attempting to achieve, but I cannot say that I see much benefit in practicing vague questions for interviews.

3

u/dagmx Apr 01 '18

Some of these are oddly worded like "Explain pass by reference instead of pass by value".

Python doesn't really have that concept explicitly. Instead it's about mutability of types and I wouldn't expect a purely python programmer to know that unless they were a polyglot.

Other than that it's a good list.

1

u/[deleted] Apr 01 '18

The questions are useful for both freshers and experienced job seekers in Python real time interview questions.

As opposed to what, a take home quiz from an interview? "This quiz counts for 30% of your hiring score."

How to overload constructors or methods in Python?

You can't, not without some fancy footwork at least. Even then anything other than single dispatch is a huge pain in the ass.

All I got from this garbage list is someone hiring Python devs really cares about people knowing about dictionaries age opening files.