# VMWare Interview | Set 1 (MTS-2)

• Difficulty Level : Medium
• Last Updated : 29 Jun, 2020

VMWare interview for MTS-2 position.

I Telephonic round

Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!

Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!

1. Given an array of strings. Find the maximum prefix among all the strings.
Ans: First told about tries. Then went for trivial answer saying compare all the zeroth indices then first indices.
2. Similar to kadane’s algorithm
3. I forgot this Q.
4. Monty Hall puzzle.
Ans: Told the ans as 1/2 after taking 5 mins. Tried to prove using probabilites but could not able to.

I F2F round
1. Given an unsorted array, find the max j-i such that j > i and a[j] > a[i] in O(N).
Ans: Told trivial solution in O(n2). Then used DP but still O(n2). Then told using sorting approach in O(n2).
Could not able to solve even after giving 45 mins of time as it is not trivial answer.

2. Given a rectangular cake and 3 persons have to share it. First person took a rectangular cut. How will you cut such that remaining two people will get the same amount?
Ans: First told horizontal cut where interviewer surprised with the answer and asked for different solution.
Then told cut along a line such that it touches center of mass of both the rectangles.

3. Asusual about current work and why VMWare.

II F2F round

1. Given k-sorted lists. How will you sort the list in to the new whole array?
Ans: Standard Q. Then asked about time complexity.

2. What if they are not sorted lists.
Ans: Sort the individual arrays first. Then told about heap solution which is not effective. But he is happy with the approaches

3. Lots of questions on C++. As I worked on C++ in current company.
…………a. What is the use of friend functions and classes? What are the advantages and disadvantages? Where do we use them?
…………b. What is virtual destructor?
…………c. Why virtual constructors do not exist ?

Forgot the remaining.

4. He is the same person who interviewed me for telephonic. So asked once again about Monty Hall Puzzle.
Ans: Proved this time with probabilites.

Ans: Simple Question

III F2F round

1. About routing protocols.
2. How to counter count to infinity problem?
Ans: Told several approaches and he is expecting poission reverse which I could not tell.

IV F2F round

This is with the manager. This is like rapid fire where interviewer keeps on asking me questions which has either one or two line answers.

1. What are the protocols that you know in transport layer?
2. What is the difference between UDP and TCP?
3. What is the connection end point in TCP ?
4. What is the systemcall which creates a separate connection? (Indirect question about Accept system call)
5. Which system call is used to poll among fds? (select or epoll_wait)
6. Why virtual functions?
7. If you already have a memory, how will use that memory to allocate a new buffer? (placement new)
8. 2-D dynamic array allocation syntax?
9. Arp protocol and why it is used?
10. Why ICMP is used?
11. What are the protocols that you know at MAC layer ?
12. Virtual base classes and why it is used?

Some other questions which I forgot.

After one day HR interview was scheduled.

Typical HR questions. At that time only he told that they are going to give offer. Did not negotiate at all as they offered me decent.

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

## Related Practice Problems

My Personal Notes arrow_drop_up