Software Development Interview Questions

37,008 software development interview questions shared by candidates

The first question he gave to me, design a cab booking system (he just want a brief about how I'm going to define my entities) Use cases: 1. user can book a ride. 2. user can store favorite locations 3. user can view past bookings 4. new drivers can sign up 5. driver can view past bookings The next question was given an integer N and D I had to add the smallest possible number in N so that N doesn't contain the digit D. Test case1 : N = 100 , D=0, output = 11 Test case2 : N = 5925, D=9, output = 75
avatar

Software Development Engineer

Interviewed at Kickdrum

3.4
Nov 10, 2021

The first question he gave to me, design a cab booking system (he just want a brief about how I'm going to define my entities) Use cases: 1. user can book a ride. 2. user can store favorite locations 3. user can view past bookings 4. new drivers can sign up 5. driver can view past bookings The next question was given an integer N and D I had to add the smallest possible number in N so that N doesn't contain the digit D. Test case1 : N = 100 , D=0, output = 11 Test case2 : N = 5925, D=9, output = 75

you have 9 marbles, all of them identical except one of them is slightly heavier than the rest. in order to determine which is the heaviest, you have a balancing scale, however you are only allowed to use it twice. how do you determine the heaviest marble?
avatar

Software Development Engineer

Interviewed at Microsoft

4
Nov 6, 2012

you have 9 marbles, all of them identical except one of them is slightly heavier than the rest. in order to determine which is the heaviest, you have a balancing scale, however you are only allowed to use it twice. how do you determine the heaviest marble?

Write a function (in your preferred language C, C++, or Java) that will take the given string and return the reverse. (ie. input:"abc def ghi" output:"ihg fed cba") Optimize the above code (if possible). Now knowing that the original function you wrote in pt1 is being used by other programs and cannot be modified write another function that when called will utilize the function from pt1 to only reverse the words in the sentence. (ie. input:"abc def ghi" output:"ghi def abc") Test your code.
Nov 27, 2012

Write a function (in your preferred language C, C++, or Java) that will take the given string and return the reverse. (ie. input:"abc def ghi" output:"ihg fed cba") Optimize the above code (if possible). Now knowing that the original function you wrote in pt1 is being used by other programs and cannot be modified write another function that when called will utilize the function from pt1 to only reverse the words in the sentence. (ie. input:"abc def ghi" output:"ghi def abc") Test your code.

Standard coding and design questions. Some questions about my background. A tedious question was to convert a string representing a roman number to an integer. This question is not hard to solve, but tedious to code.
Jan 17, 2014

Standard coding and design questions. Some questions about my background. A tedious question was to convert a string representing a roman number to an integer. This question is not hard to solve, but tedious to code.

Viewing 831 - 840 interview questions

Glassdoor has 37,008 interview questions and reports from Software development interviews. Prepare for your interview. Get hired. Love your job.