Staff Interview Questions | Glassdoor

# Staff Interview Questions

9,661

Staff interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Staff Writer at Guardsmark was asked...

Feb 7, 2010
 What does wood and alcohol have in common?17 Answerstwo OsGrain!both burnShow More Responsesprobably a minimum of a 100 things...which one do you want?does? reallllly? don't think they asked it quite like that either.Both have the same origin: glucose. Alcohol is made by glucose fermentation and wood is made of celulose/lignine, that are basically a glucose polymerer.They are both lighter than water.both are integral parts in making a decent whiskey.CarbonBoth are a fuel source.both can knock you on your assI had the same answer as JJ. They are both less dense than water.Neither one can climb trees.Show More ResponsesWhen I drink alcohol, I get wood.I have both in the morning.CarbonBoth can leave you with a sore head, if misused.

Dec 3, 2011

### Member of Technical Staff Software Engineer at VMware was asked...

Jun 12, 2012
 How many race heats are needed to find the 3 fastest pinewood derby cars out of a field of 8, if only 4 cars can run at a time (assuming that every car will always run the way/speed and each lane is exactly equivalent)?7 AnswersEach heat rules out 1 car (that cannot be one of the 3 fastest).so is the answer 4 heat 1 (first 4 car) + 1 (4 second set) + 1( Top 2 from first + Top 2 from second set) + 1 (3 car heat among the 3rd placed car)Only two races of four cars in each. Get the times of all cars and sort them. You don't need any more races because the times will be the same in subsequent races. :)Show More Responses4 if we cant measure time3 if we cannot measure time.Choose 4 cars at random for the first race. Trivially the slowest car in that race can be removed from consideration. For the second race randomly choose 3 previously untested cars as well as the third place car from race one. If the car from race one wins then all other cars in race 2 are slower than all of top three cars in race one and may be discarded. Similarly if the car from race one is in last place all of the cars from the first race may be removed from contention. In effect, regardless of how this car performs in the second race three additional cars may be removed from consideration. With one car removed in the first race and three additional cars removed in the second only 4 cars remain. The remaining four cars may be raced simultaneously in a third race to provide the final solution.4 rounds choose 4 cars for the first round, and the other four from the second round; this makes up two round. The lowest cars in both round definitely cannot be part of the best 3. In the third heat, the last four cars from the first two rounds make up another round. At this point, its either all three in one round are the fastest, or the fastest two in one round and the best in the other. The winning 2 in this round are selected and a last round to determine the fastest three.

### Staff Hardware Engineer at Qualcomm was asked...

May 2, 2013
 If you have a 600 digit number with only 0's and 1's, and exactly 300 1's, can the number be a square?6 AnswersNoI am trying to undersatnd why you say the answer is No. for a 6 bit binary number, of which 3 bits are exactly 1s. 25 and 49 are possible such numbers that happens to be a square... Why can't this possibility extend to a 600 bit binary number?The answer should be YES: @gustion: your example with 49 (7 pwr2) is correct but with 25 (5 pwr2) is incorrect. 7 in binary is 111 (3 1-bits is half of 6 bits), but 5 in binary is 101 (2 1-bits does not equal half of 6 bits). In general, any binary number with n-bits, half of which are 0's and half are 1's is a square of a binary number with half the number of bits, all being 1-value bits. In addition, the number's magnitude will be n/2-1 1-bits followed by n/2 0-bits followed by the last 1-bit. For example, lets say we have a 16-bit number. The number which will have 8 1-bit and 8 0-bit binary digits and also be a square is: 1111 1110 0000 0001 (7 1-bits followed by 8 0-bits followed by 1-bit) and this number is a square of 1111 1111 Binary number with 600 bits and 300 1-bits will have a magnitude of 299 1-bits followed by 300 0-bits followed by 1-bit, and it will be a square of a 300-bit number with the magnitude of 300 1-bits.Show More ResponsesWell on a simple note, 9's binary is 1001, a 4 digit binary with two 1's and two 0's, and is a perfect square. The same analogy should also be true for any such number.can someone explain why this pattern works?Because (2^n - 1)^2 = 2^(2n) - 2 * (2^n) + 1 = 2^(2n) - 2^(n + 1) + 2^0. Such that bit n + 1 to 2n -1 will be 1, bit n to 1 will be 0, and bit 0 will be 1, which makes it n bits of 1 & n bits of 0. You can test 15^2 = 225 to understand it.

Jan 27, 2010
 writing assements3 Answers30 mins limitWhat was the topic of your written assessment ?Is it hand writen?

### Staff Consultant at Capgemini was asked...

Jun 10, 2012
 If you were project manager and you and your team finished the project under budget, and had to decide what to do with the rest of the money left over, would you: Divide the money with your team equally Keep it Divide the money with your team with level of contribution and rank being the ones who receive the most3 AnswersNo wrong answer.Is the correct answer to split equally or by rank proportionally?No wrong answer, just a good explanation of why you chose it.

### Staff Engineer at Dolby was asked...

Jan 31, 2010
 Suppose you have a device that fires an interrupt every time it fills up with 5 bits of information; how do you commit this data into a 32-bit addressable memory location, without any padding bits?3 AnswersThis was supposedly the question that sunk many a candidate. I got it using number-theory, and drawing a little block diagram, and using certain registers on the CPU.Please give a specific answer. Explain to us without using drawing or block diagram.I am assuming you stored 5 bits in a CPU register then did some "&", "|" and ">" with next 5 bits and kept count of bits or something and when got to a count of ~32., wrote to memory. Am I right? If not please suggest the correct solution.

### Member of Technical Staff Software Engineer at VMware was asked...

Jan 12, 2012
 Given a series of strings, find the biggest common prefix.4 Answers/** * Jun Zheng, Rice Univ * Given a series of strings, find the biggest common prefix. * Real question of VMware * Java7; running time: O(n^2) * @param str * @return */ private String biggestPrefix(String[] strs){ String prefix=strs[0]; for(int i=1;i0;i++){ int j; for(j=0;j0)? prefix:"No such prefix!"; }How that works? You are considering "prefix" must come from the very first string, which is not true. In the following string set, the biggest common prefix is "xyzasd" - which this program fails to find! String[] arr = {"MxyzasdNmm", "kxyzasdDodal", "I am a Good Boy", "JadxyznasdM Golmal", "ABCDEF", "ABCDEFGH", "Sunnyvale", "CaliforniaKxyzaszzMon"};What? Prefix is not started from the very first string? Jesus I cannot read Eng!Show More Responsesx = ["Ravite", "Raviteja", "Ravby", "Raviejaain","Ravi" ] #Given String y = x[0] for i in x: if len(i)> len(y): y = i fin = [] y = list(y) for i in range(len(y)): count = 0 for j in range(len(x)): if y[i]==x[j][i]: count +=1 if count == len(x): fin.append(y[i]) else: break if len(fin) > 0: print "".join(fin) else: print "No common prefix in series"

### Senior Member of Technical Staff at VMware was asked...

Aug 1, 2012
 How do you reverse print a string. After answering the same by providing an out of the box API, the next unexpected question was "What if it does NOT exist". While and 2nd alternative was provided, it was pretty much shot down as being not acceptable.3 AnswersUse String tokenizer, dump to array and print the array in reverse. However, the prompt response to that answer was "What if there is NO stringtokenizer?" Stringtokenizer is an Out Of The Box API in java.util.maybe try something like this StringBuilder sb = new StringBuilder(str); sb.reverse();string.split('').reverse().join('');

### IT Staff at Regeneron Pharmaceuticals was asked...

Oct 7, 2012
 What is your salary range?3 AnswersIn looking at the reviews and interview section of glassdoor, most people felt the salary was to low so when I gave the average salary range for the area as my salary range, I felt it was outside the range of HR. I went that route because I am coming from out of state and needed salary good enough to cover living expenses for my family.May I ask what salary range you were asking for?A: "Taking into account my skills and expertise I am thinking high range"
110 of 9,661 Interview Questions