40+ Common code and interview problems solved in Python (it's growing...)
10 Python Interview Questions You need to know
I didn't know the first one. I wouldn't say it's something you need to know. Would be suprised to see it in an interview. It's rather obscure and if you need to do this then you are probably doing something wrong. Also I might have gone with
super(B, obj).show()
The others are pretty useful though.
More on reddit.comGood Questions to Ask Interview Candidates
There was an old joke about SED programmer and an interview question. It went something like this:
Ask a programmer in an interview to implement Roman to Arabic number translator in SED. If he or she manages to produce one, do not hire them. If a programmer knows how to do this in SED, they will do everything else in SED.
(side note: I actually met someone who wrote such a program, as a joke of course)
On a more serious note: are you sure this is the kind of knowledge you want? The time you have to interview a candidate is limited. Assessment is a very hard task... why spend it on trivia questions? I think, that knowing the syntax is a kind of a baseline, but it's not necessary to have that knowledge up-front. What if your potential hire is very good at Ruby, but didn't touch Python in the last ten years?
I think, that you need to be flexible and try to figure out what the applicant think they know, and then work from there. Obviously, it's preferable that they know something related to your company's business. Though, I find that programmers who contribute the most to company's success are those who understand the domain in which the program needs to be used. Ironically, most programmers are reluctant to even hear about that.
Hence, if, say, your company does banking, I wouldn't ask the programmer about their knowledge of Python: any monkey with half a brain can learn most of it from YouTube videos in a month or so. I'd ask them about bonds, derivatives, regulations, stock markets etc...
More on reddit.comMost Important Python Interview Questions
How to implement inheritance and multithreading in Python ?
I feel like this should be split into two different questions.
More on reddit.comVideos
https://github.com/devAmoghS/Python-Interview-Problems-for-Practice