What are the best programming interview questions you've ever asked or been asked? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 44

What are the best programming interview questions you've ever asked or been asked?

8th Jan 2018, 7:35 AM
Divyaraj Yadav
Divyaraj Yadav - avatar
21 Answers
+ 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.
9th Jan 2018, 3:10 AM
ABDUL MANAN
ABDUL MANAN - avatar
+ 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.
9th Jan 2018, 1:32 PM
Roberto Guisarre
Roberto Guisarre - avatar
+ 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
15th Jan 2018, 3:54 PM
Oma Falk
Oma Falk - avatar
+ 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.
13th Jan 2018, 2:58 PM
PraAnj
PraAnj - avatar
+ 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!
16th Jan 2018, 2:45 PM
Aleena
Aleena - avatar
+ 13
if scanf is written in this way scanf("%d-%d",&a,&b); then what wii be the syntax to give input?
14th Jan 2018, 4:05 AM
Rahul Jain
Rahul Jain - avatar
+ 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
14th Jan 2018, 5:40 PM
Sandeep
Sandeep - avatar
+ 8
You have two candles. Each burn for 60 minutes. How can you measure 50 minutes using this ?
16th Jan 2018, 5:34 PM
lehman
lehman - avatar
+ 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?
4th Apr 2019, 1:11 AM
Dhruv Rawat
Dhruv Rawat - avatar
+ 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.
15th Jan 2018, 5:13 AM
Jeffrey Koh
Jeffrey Koh - avatar
+ 2
tell me about artificial intelligence and do you want to learn it
16th Jan 2018, 1:22 PM
Arun
+ 2
What is actually programming asked??
3rd Apr 2019, 3:48 PM
Santhosh Kumar
Santhosh Kumar - avatar
+ 2
Is HTML a programming language? 😉😂😂😂 If yes, then immediate application decline. 🤣
4th Apr 2019, 1:16 AM
Tony
Tony - avatar
+ 1
I don't have personal experience to tell any best questions but would definitely recommend you to read Cracking the coding interview.
4th Apr 2019, 1:00 PM
....
0
learning experince
4th Apr 2019, 12:30 AM
tekintian
tekintian - avatar
0
Awesome Q&A!! Thank you all!!
4th Apr 2019, 1:41 AM
Jose Alfredo Cardenas Perez
Jose Alfredo Cardenas Perez - avatar
- 1
uzbeklar bormi
15th Jan 2018, 3:18 PM
Pardayev Xurshid
Pardayev Xurshid - avatar
- 1
привит
15th Jan 2018, 3:19 PM
Pardayev Xurshid
Pardayev Xurshid - avatar
- 1
Hi
17th Jan 2018, 2:06 AM
Fehima Ali
Fehima Ali - avatar
- 1
hi
11th Jan 2019, 3:06 AM
Fehima Ali
Fehima Ali - avatar