Programming Interview Questions | Glassdoor

# Programming Interview Questions

12,400

Programming interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

Oct 11, 2011

### Financial Analyst Program at Wells Fargo was asked...

Mar 2, 2010
 What is an EBITA and what doesn't go into it?4 AnswersIt completely disregards the balance sheet.interest expense, taxes, amortization, depreciationinterest expense, taxes, amortization, depreciationShow More ResponsesEarnings before interest, taxes, and amortization

### Quantitative Finance Program at Morgan Stanley was asked...

Sep 13, 2010
 In a set of cereals, there are 4 kinds of coupons. A child wants to collect all the 4 kinds of coupons. How many boxes in average should he buy? 3 Answers25/3169/16sorry, should be 25/3

Oct 12, 2013

### Junior Associate Program Management at Sapient was asked...

Feb 11, 2011
 If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?3 AnswersFill the 5 quart pail and pour it into the 3 quart pail. now there are 2 quarts remaining in the 5 quart pail. empty the 3 quart pail and pour these 2 quarts into the 3 quarts pail. now the 3 quart pail is 1 less to be filled up. now fill the 5 quarts pail and pour 1 quart into the 3 quarts pail to fill it. the 5 quarts pail has 4 quarts in it now.1) Pour 5 in take 3 out total remaining = 2 2) Pour 5 in total = 7 Take 3 out Now 4 is left total = 4fill up the 3, pour it into the 5. fill up the 3 again, pour 2 into the 5 to top it off. now your 3 has 1. empty the 5. pour the 1 into the 5. fill up the 3 and pour it into the 5.

Dec 4, 2012

### Technical Program Manager at Amazon was asked...

Jan 24, 2012

Mar 7, 2010
 How would you extend Array in JavaScript so that it could add all the values stored in an array?3 AnswersThis is an exploration of Object prototypes, which demonstrates the level of sophistication with the language.Array.prototype.addValues = function(){ var out=0; for (x = 0; x < arr.length; x++){ out = out + arr[x]; } return out; }arr should be this

Jun 3, 2013
 Why are you interested in working for Baker Hughes as a field engineer?3 Answershow long it took from the last interview until you get the offer?Since my BHE session ended on a Friday, we were promised to hear back on Monday morning. I was contacted around 10AM CST and received the e-mail package the following evening.What was you answers to that quiestion?

### Summer Explore Microsoft Program at Microsoft was asked...

Apr 17, 2012
 There are 9 identical looking balls, but one ball is slightly heavier than the others. If you have one scale, what is the least number of measurements one would need to identify for sure, which ball is the heavier one?6 AnswersTwo. Best if you figured it out alone rather than me to explain :PCan be done in 2 shots. Think it around or else I'll post it later.Can you explain this?Show More ResponsesHow can this answer be 2?If you grab one of the 8 identical weight and happen to grab the heavier ball by chance it could be done in two measurements. The deviation would be detected by the scale. It said the least not what is the most likely or probable numberPlace 3 balls on each side of the scale and leave 3 off. Next take two of the three balls from the heavier side (or 2 from the 3 left out originally if the balance is equal) and put one on each side of the balance and leave 1 off. If the balance is unequal you've found the heavy ball, if the balance is equal the heavy ball is the 1 you didn't weigh.
3140 of 12,400 Interview Questions