Senior Software Engineer Interview Questions in Bangalore, India | Glassdoor

# Senior Software Engineer Interview Questions in Bangalore, India

"Senior software engineers are the most experienced member of a software team and usually carry the most responsibility and authority of that team. Because of this, interviews will be designed to find candidates who have expert knowledge of the field and years of experience as a software engineer. Expect to be asked tough technical questions and to give examples of previous projects that you have worked on."

## Top Interview Questions

Sort: RelevancePopular Date

Sep 8, 2009

### Senior Software Engineer at Amazon was asked...

May 2, 2012
 Given the daily stock prices of a share during last 30 days, write a program to find out best buying and selling dates for maximum gain. The program should run with O(n) complexity.4 Answersfind the difference of price change on everyday and store it in an array. i.e., something like: [2,0,-3,6,-1] Now find the sub array which has the more sum. http://en.wikipedia.org/wiki/Maximum_subarray_problem@devsathish, I do not think so! Consider : {1,-4,5,6,-3,9,1,7} Maximum_subarray_problem would select {5,6,-3,9,1,7} where as the logical index for buying should be 1 and 5 respectively.Much much simpler in O(n) Just make a new array which contains the "lookahead" view, where we can see, which potential highest value we can gaini in future. Another array just contains the lowest value so far. When the difference between the two arrays is max, there is the buying point. Selling point is, when the falling edge of the max array is reached. public void highestGain(int[] prices) { int[] maxPrices = new int[prices.length]; int[] minPrices = new int[prices.length]; maxPrices[maxPrices.length-1] = prices[prices.length-1]; minPrices[0] = prices[0]; for(int i = 1; i maxPrices[sellPos]) { sellPos --; break; } } System.out.println("Ideal to buy/sell: " + maxDifferencePos + ":" + sellPos); }Show More Responsessdgdfsh

Aug 10, 2013

### Senior Software Engineer at Oracle was asked...

Feb 10, 2011
 Find 2 or more missing numbers in a set of 100 natural numbers6 AnswersLook at the numbers and pick the highest one. That will be your salary.Sort numbers lowest number = salary print "your salary is" salaryC = U + Rr / Y Where C = natural number U = the universal constant Rr = local variable Y = years of serviceShow More ResponsesCreate code that sorts the numbers and then write an algoirthm to check to see if the increments between each number is equal to 1. If not, then add 1 to the previous number to get the missing number. Birdie num num.Since its 100 natural numbers the sorting can be done using an array/counting sort in constant time O(100). Now iterate and find the missing elements.Sort the array..create two subarrays with =50 and check count of each array..the one which is sorted..pass it to method which divides it to 1/2 again..

### Senior Software Engineer at Akamai was asked...

Sep 6, 2010
 How to remove a element from a single linked list a 3rd element when only the reference of it is given.2 AnswersAs you cant traversce in linked list back so we have to copy the content of next value in list to the current node(node to be removed)void removeElement(node n) { n.data = n.next.data; n.next=n.next.next; }

### Senior Software Engineer at Accenture was asked...

Jun 28, 2010
 How did you deal with handling various ppl within the team2 Answers1:1 meetings, activities etcLet me just say how much I missed my full capacity iPhone while dealing with fellow employees overseas.. In the war of "Internet in my pocket", blackberry loses big..

### Senior Software Engineer at Curam Software was asked...

Sep 8, 2010
 How many design patterns you know and list them2 AnswersLater tells me i am looking for few specific wordsThere are 5 Design Patterns: 1. The Factory Method - provides a simple decision making class that returns one of several possible subclasses of an abstract base class depending on the data that are provided. 2. The Abstract Factory Method - provides an interface to create and return one of several families of related objects. 3. The Builder Pattern - separates the construction of a complex object from its representation, so that several different representations can be created depending on the needs of the program. 4. The Prototype Pattern - starts with an initialized and instantiated class and copies or clones it to make new instances rather than creating new instances. 5. The Singleton Pattern - is a class of which there can be no more than one instance. It provides a single global point of access to that instance.

### Senior Software Engineer at Intuit was asked...

Oct 25, 2013
 What is the test process followed by you? Write pseudo code for fibanocci series? Not much technical questions. 2 AnswersFirst round is to analyze, whether candidate is match for openingWhat kind of questions were asked in telephonic interview?

### Senior Software Engineer at Cerrid Solutions was asked...

Jun 2, 2014
 They were not sure what to ask actually. I found the interviewers like school kids. Hardly 1-2 yrs experienced people.2 AnswersMade a mistake to appear for the interview. Came out in the middle of the process.We will look into it and make sure senior guys are interviewing the experience resources. It was miss from our side as many interviews going in parallel. But if you are really interested and want to see the knowledge of our senior resources then I will request you to come once and interact with our senior technical guys.

### Senior Software Engineer at Global Edge Software was asked...

Dec 21, 2011
 How much memory a class take without any data memebr and functions 2 Answersits 1 byte as address will be allocated to the class when initalized.ya correct 1 byte it occupies for an empty class, 4 functions are declared by compiler during compilation inside empty class, they are, 1) copy compilation 2) overload assignment operator 3)default constructor 4)default destructor, search in google for more imformation and refer a book called " object oriented programming with c++" by subhash k u , pearson publication, best book for c++
110 of 3,774 Interview Questions