# 477

senior member of technical staff interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date
Senior Member of Technical Staff was asked...25 January 2010

### given 8 coins and one of them heavier than the others, how many weighings will be needed to find the odd one ?

two weighings are needed. separate into three groups (3,3,2) put three on each side of scale, if sides balance then place two remaining coins on either side of scale to see which is heavier. If sides don't balance, take two coins from the heavier side and put on the scale to see if one is heavier, if they balance, the one you took off is the heaviest. Less

@Cigar lover ... no. once you put coins on the scale, that counts as a weighing, and every time you remove coins it counts as a weighing. this boils down to the 3-3-2 solution above. the first time you remove 2 and weight, you are weighing 3-3. at that point there are 3 possibilities still. the scale is even, or one or the other side is down. you have to do one more weighing from there. Less

divide it into 2 group of 4 each.remove the group that weighs less.then divide the remaining 4 into 2 groups of 2 each.remove the group weigh less.again weigh the remaining 2.u get the heavier one.so 3 weighing. Less

### Given an array of integers write a function so that all the even numbers are on the left side of the array and all the odd numbers are on the right side of the array.

keep left=0, right=ia.len() indices in input array, ia[] while(left &lt; right) { if(odd(ia[left])) { left++; continue; } if(even(ia[right])) { right--; continue; } //get here, then swap array contents left++; right--; } Less

for (var b=[], i=0; i&lt; a.length; i++) { if (a[i] %2 == 0) b.unshift(a[i]); else b.push(a[i]); } Less

void partition(int *A, int size) { int j = 0; for(int i = 0;i &lt; size; i+++) { if(A[i] % 2 == 0) { swap(A[i], A[j]); j++; } } } Less

### If we write return statement in try, catch and finally block, which one will execute when and why ?

The return written in finally will take precedence over others.

Finally block will definitely execute, because it always gets executed and very important code is to be put in finally block like closing of file, return statement etc. Less

public class TryCatch { public static int getReturn() { try { return 1; } catch(Exception e) { return 2; } finally { return 3; } } public static void main(String[] args) { System.out.println(getReturn()); } } 3 will be returned. Less

### 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.

Use 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. Less

maybe try something like this StringBuilder sb = new StringBuilder(str); sb.reverse(); Less

string.split('').reverse().join('');

### Explain overall polymorphism using uml diagram?

Drawn the diagram of the animal class and explained the compile time polymorphism and how run time polymorphism works.Method overloading and overriding in the classes. Java feature interface to support multipile inheritance Less

### Architecture of my previous projects. Mostly LC Easy/Medium (Interval problems, Graphs and Trees, can't be more specific due to NDA). Challenging behavioral questions. Understanding of design, tests and code review. Questions on REST Api design patterns, basic security concepts.

Coding on white board, my preferred lang was java. Trace the program for specific test cases. Less

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Salesforce or ex-Salesforce Senior Member of Technical Staff experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews Less

### "Do you have silicon flowing in your veins?" (Not really difficult, just pointless)

I didn't. I knew the interview was a farce by this time.

FYI: Contrary to the person trying to deflect criticism, there is only ONE General Micro Systems and both locations (Rancho Cucamonga CA &amp; Stuart FL) are owned by the same person, Udi Levin. They refer to the Stuart location as GMS East. Less

### Basic JAVA operations , file processing, reading , regularEx, Datatype conversions. In short things that you don't use on a day to day basis

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in VMware to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of VMware Senior Member of Technical Staff experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews Less

Left it in the middle. You don't remember all the syntax. As part of solution the code should run on hackerrank tool. So there was no point wasting more time on guessing stuff Less

### I was ghosted, After waiting for 15 minutes in the first interview, the interviewer did not show up, I ended up emailing the recruiter(who no longer works there), he promised to get back to me soon and that the first interviewer had an emergency, i waited for the second interviewer for 15 minutes, no one showed up. What a joke of a recruiting experience. I've never seen this in my 12+ work experience.

This has been essentially my experience too. Third attempt at a third round technical director position, and I was ghosted. Hiring manager had left for vacation and didn't let the recruiting team know. Less

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Oracle or ex-Oracle Senior Member of Technical Staff experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews Less