+ 44
What are the best programming interview questions you've ever asked or been asked?
21 Respuestas
+ 33
When I had an interview for the PHP developer the questions in technical round were normally as asked in any interview. But in the HR round I was asked why I had not chosen any other language or why learning a language rather than going for one's own business.
+ 27
Usually you can expect design or Object Oriented Programming questions (inheritance, polymorphism and encapsulation), but the best questions for me were about problem solving and range (Software Development Life Cycle) and project experiences with set backs and teams (that's when you have 5+ years of experience). Any question specific to a language you are mentioning in your CV is a default, so, just don't lie and you should be fine.
+ 26
Sometimes my bigboss asks me to join an interview if we recruit programmer.
I ask for the biggest desaster he caused.
if there is nothing to mention:
he is a newbie ...
Two or three desaster in 5 years:
not bad
If he could solve them ... hire !!!
more than 5 desaster
if he could solve: a chaotic genius..maybe
if not: sorry thanks for interview
+ 18
What are the differences between java, python and c++, specially in performance and usage practices? explain each difference.
Asked about this since i have mentioned these languages in CV.
+ 17
This one was simple, but fun to work out (I had never heard it before). You have 7 balls that appear to be exactly the same, but one of them weighs more than the others. You have a scale (think scales of justice), and two attempts to identify the ball that weighs more. Talk through how you would try to solve this on the whiteboard.
When I did it, the interviewer did not explicitly tell me that the ball weighed more - only that it weighed differently. Not sure if that was intentional, but drives another point home: identifying variables is important!
+ 13
if scanf is written in this way
scanf("%d-%d",&a,&b);
then what wii be the syntax to give input?
+ 10
There was a simple math question to test analytical solving.
How do you calculate 2*2? Explain process.
Explanation should be in real time examples but not in numbers
How do you calculate 2*1.5? Explain process.
How do you calculate Pi*Pi? Explain process
+ 8
You have two candles. Each burn for 60 minutes. How can you measure 50 minutes using this ?
+ 5
Here are some examples of questions I would ask:
C++ : What would you do to find and fix a memory leak?
Java : What actions do you take in order to prevent unchecked exceptions?
Java : When should you use synchronized on a thread safe collection?
Java : What can you do to prevent deadlocks?
HTML : What's the difference between span and div?
General : What best practices do you know?
General : Give me some examples of problems that you have solved using design patterns
Javascript : What is the difference between == and ===?
Java : Why should you override hashCode() when you override equals()?
Java : What is the difference between interface and abstract class? How do you decide which one to use?
Java : What new features have been introduced in Java 8?
Java : Why should you use polymorphism?
Java : What's the risk in using raw types?
Java : When should you use enums instead of constants?
C : What is the difference between calloc and malloc?
Javascript : can you explain me how closure works?
+ 3
Not sure if my answer relates to the question. I was given a set of questions which I would not want to publish as many companies have policies about revealing questions. It may be a mute point as that happened a long time ago. But policies have always frustrated me and I would guess for many people as they tend to be vague. Worse yet, when they are not enforced and then suddenly enforced.
Anyways - I listed on the paper I was given what I knew and I put down very little. Or none if memory serves. Memory can be faulty too.
I was asked on the questions and I said what I knew. I've always been interested in technology. The interviewer mentioned to me that many interviewers put down they knew a lot and yet could not answer the questions he asked. He said I knew more than quite a number of participants.
I was very much overwhelmed and somewhat embarrassed. I did not think I knew much. It did give me confidence that this is a wall I would venture upon.
+ 2
tell me about artificial intelligence and do
you
want
to learn it
+ 2
What is actually programming asked??
+ 2
Is HTML a programming language? 😉😂😂😂
If yes, then immediate application decline. 🤣
+ 1
I don't have personal experience to tell any best questions but would definitely recommend you to read Cracking the coding interview.
0
learning experince
0
Awesome Q&A!! Thank you all!!
- 1
uzbeklar bormi
- 1
привит
- 1
Hi
- 1
hi