Senior Software Developer Interview Questions in New York City, NY | Glassdoor

# Senior Software Developer Interview Questions in New York City, NY

146

Senior software developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Senior Software Developer at Tower Research Capital LLC was asked...

Jun 7, 2010
 Another was a puzzle: A king orders 100 bottles of wine for a celebration. A courtier who's angry with the king over something puts poison in one of those bottles. The king has a way of identifying the poisoned bottle by giving a few drops of wine to a monkey. Since the poison is fast acting, the monkey will die immediately. Whats the minimum number of monkeys needed to find the poisoned bottle? 6 AnswersAssuming that there is only one poisoned bottle, then you only need one monkey- because as soon as it dies, you found the bottle. However, if there is more than one bottle, or suspicion of more than one bottle, you will need at least two monkeys.you need only one monkey since you will keep giving him wine till he dies and as soon as he's dead you know that was the bottle.I think it means we can only test once. So the minimum # of monkeys is 99, is it?Show More ResponsesThe answer is 7. Let monkeys be numbered 1-n. Each number less than or equal to 100 can be written as a 7 bit number. Hence, bottle one(0000001) is given to monkey 1. bottle three(0000101) is given to monkeys 1 and 3 and so on. Now say monkeys 1 3 5 died, it means that the number is 0010101 which means the bottle 41 is the poison!The way it's written, it seems like one would be the answer, or perhaps considering a monkey's tolerance for wine, N = 100 / (number of drops of wine a monkey can drink before passing out)... When asked with the condition that the monkey will die some time later, i.e. not immediately, the binary number technique described by Sri Krishna is best.make the courtier drink it

### Senior Software Developer at Goldman Sachs was asked...

Apr 21, 2010
 can there be a thread without a process2 AnswersnoA thread is a sub-construct of a process, so no.

### Senior Software Developer at Goldman Sachs was asked...

Mar 9, 2011
 write a function to swap integers not using third int?2 AnswersIIRC, this can be done using three XOR operations: A = A xor B B = A xor B A = A xor BI believe this can be solved with simple subtraction: A = A + B B = A - B A = A - B For example, if A = 10 and B = 24: A = 10 + 24 = 34 B = 34 - 24 = 10 A = 34 - 10 = 24

### Senior Software Developer at Bloomberg L.P. was asked...

Apr 1, 2015
 Explain how you developed your previous application, and what special technique did you use to achieve any additional performance1 AnswerI answered that I , using the prior knowledge from Masters course, used different type of tool addon to create a faster data processing step. Also, described some of the algorithms I used in my existing company. Explained my prior experiences, but they were more interested only in the latest project as usual.

### Senior Software Development Engineer at Audible was asked...

May 8, 2015
 There were many questions like"tell us about a hard problem you had to solve" and "did you ever do anything risky" and "did your boss ever ask you to do something that you didn't agree with"1 AnswerI tried to be honest, while stressing the co-operative aspects. Since I didn't get the job, maybe they want more independent types?

### Senior Software Development Engineer at Publicis Sapient was asked...

Mar 29, 2019
 The process was so lengthy with a full 8 hours of an online test which led to final interview and a face to face interview in NYC I do not know where to start 1 AnswerI was told I did great right up to the end about 40 hours later between travel and time spent on their process.

### NET Senior Software Developer at Bloomberg L.P. was asked...

Sep 20, 2013
 What is the difference between a mutex and a monitor1 AnswerMutex can span across the appdomain/process, where as Monitor is light weight and its scope is with in the appdomain

### Senior Software Developer at Goldman Sachs was asked...

Apr 21, 2010
 describe some of the design patterns that you have used1 Answerstrategy, factory etc.

### Senior Software Developer at Bloomberg L.P. was asked...

Aug 2, 2013
 I mentioned using a circular buffer as a technique of buffering messages and they asked me to implement one. I had not thought out how to deal with telling the difference between buffer full end buffer empty.1 AnswerEither you have to have an empty slot in the buffer, or you can use two integer counters to count the number of bytes written and the number of bytes read. These integers are incremented on each read or write and freely overflow to become negative / positive. You can then get the number of entries left to read by subtracting.

### Senior Software Developer at J.P. Morgan was asked...

May 25, 2015
 Python question: what is the difference between "[x for x in range(3)]" and "(x for z in range(3))"3 AnswersYes.Comprehension works by looping or iterating over items and assigning them into a container, a Tuple is unable to receive assignmentsThe answer posed on by Anonymous on Jul 10, 2015 is NOT correct. The former is "List comprehension" the later is "Generator expression". "Generator expression" is NOT a tuple.
110 of 146 Interview Questions