1 |
i am enclosing the questions that i was asked in Seattle hope it helps u in ur preparation. when it comes to coding questions, they generally ask Linked Lists, Arrays and Strings. Again Strings are nothing but character arrays. Linked lists are important because they want to see if u can handle the pointers. Arrays are nothing but pointers..... so basically it all comes down to ur ability to handle the pointers. INterview Questions
|
2. |
Reverse a link list. Here be careful of the function prototype you are provided. Try void reverse(node *head) where head points to the head of the list and should point to the head of the reversed list when you return from the function. Find the largest subarray in an array which has both positive and negative numbers. Merge two sorted link lists. Delete all nodes with a particular value from a link list. Find and delete all occurances of a char from a char array. Print all the nodes at a particular level in a tree where each node can have a variable no of children. You can assume any structure for the node except that the level of the node cannot be stored in the node. Backspace when a cahr length is either one or two. If its two the first char is greater than 127 and the char following it can be anything. If its a single char it is less than 127. Given an 2 dimensional (mXn) array which can have any integer stored in it. Write a filter such any row or column that had a zero in the orignal array is now totally filled with zero. Try to minimise memory usage as much as possible. given three nos if their product is odd return the min no else return the max no. Test a Toaster, an Alluminium can, a Hair Dryer. |
3 |
mostly coding.. 1. convert an ascill array to integer.. mainly atoi function 2. reverse a linked list 3. function to calculate angle between two hands of a clock 4. write an increment function (pass by pointer and pass by reference) 5. some concept of new and delete (malloc and free) 6. some questions of major coding projects u have done so far(in my case it was advance unix pgm) for all the code u come up with you have to provide test cases to test those functions 7. Difference between const char*, char const*, const char const* etc. General 1. Test an ATM machine.. 2. Simple puzzles that u can find in links i sent b4.. i did not attempt anyone. i said i had already solved them 3. Some important bug you have found so far in codes you have writtten so far..How did you go about finding and solving that bug.. Be ready with some bug you have found.. or try to cook one if you never found any.. |
4. | 1st interview
HR bullshit, told abt my thesis, some std questions like tell abt an occasion when u had to handle more than 1 thing and how u managed...talked abt end of semester rush etc... 2nd lunch interview...
3rd: was
4th interview with some guy in NT kernel
if you want my advice id say atleast look at everything in ur resume... i had left out the assembly languages... |
5. |
first interview was a HR interview.
i was being interview for 2 groups... 1)windows sustained
engineering group 2)Avalon 1st tech interview..!!
2nd tech interview...(its a lunch interview...by desi).. this
guy started like as if he is not going to interview me at all...and then on the
way to lunch in his car.. he asked i am given a key chain of his car (remote
opening/closing, trunk opening types)..how would i test it.. told as much as i
can..! some of the points i told him are... -pressing all combinations of
switches in the key chains.. -pressing them very fast. -testin in adverse
conditions...rain, winter, summer -testing the range of the conditions.. -about
security, other car key chains shouldnt open this cars lock -effect to
humans..prob bcoz of signals.. -check for violations of any regulations (about
signal frequency etc)
3rd interview..
4th interview
5th interview
|
6. |
1st interview
2nd interview
3rd
4th
|
8. |
My MS Onsite Questions:- HRInterview:- 1)How do you rate yourself in your class(1-10) 2)whats is the prog language you are good at?my ans was C)How do you rate your skills in C prog(1-10) 3)why do you want to work for MS. 4) why testing. 5)Debugging question and test an Hour glass.(Iwas told that these questions are only for the warm up towards the interviews to come and does not affect the hiring). Ist :- 1) Tell what you did for the project in Web server/client and the performance measure. 2) How do you think internet browsers like IE or Netscape work? how can you modify your client program to work similar to IE or Netscape? Puzzles:- you walk one mile no East one mile north and one mile west and end up at the same point? What are the minimum weights required to measure a total of 40lbs using a common balance and what are they? IInd:- 1) Explain about the byzantine agreement project? 2) what are the practical applications for the protocol and what will you do to make it more efficient? 3)Write a program to convert a string to its ascii equivalent and testcases? IIIrd:- 1)Write a program to generate the game The game has like a 4x4 square having numbers 1-15 in them.The numbers are to be arranged in the following order with the only space 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2) how do you test it. IVth:- 1) Write a program to find the difference between a given date and time Dt1 and Dt2 in years months days and time and the day of the dates assuming you know the day of the current date. 2) How do you test it? 3)Puzzle:- A man has to send the medicine box across a river with a boat man( who is not to be trusted.) to the other end.(its the same old question which was asked for sarada and us for the internship). 4) test a telephone. Vth:- 1) what did you do in your job at TCS?what did you like the most? what didnt you like? 2) Write a program to eliminate an occurence of the string (str2) from a string (str1);with some extra conditions but I am still not sure what exactly the question was. he somehow made it sound so confusing in the interview. 3) write the test cases for testing the program. |
9. |
HR interview she told the teams that would be interviewing me. then asked me to explain about my projects.. what's ur GPA? etc... if ur GPA is low, be prepared to explain.. 1st interview. About my project asked me to find an integer in an array that's not occurring in the range 0-N... 2nd interview. About my masters' project and some real-time computing stuff related to the project... find number of bits in an int... 3rd interview. breadth first search ..implementation of strspn. test it.. 4th interview. he covered all my work related projects.. why microsoft? why testing? 2 simple puzzles .. he picked up a bottle on his desk and asked me to test it. what do u test in a s/w product? 5th interview. what's the difficult question so far? why microsoft? why testing? why shud we hire u? ur mgr has given u a dialog box with an edit box and a OK button. figure out what that application does? write a sed game.. - from a bunch of cards with properties (color- R,G,B number-1,2,3, shape-Rec,TR, diamond, fill - solid, #, emty) u have to find whether 3 cards form a sed or not..3 cards form a sed if all their properties are equal or all are different.. |
10. |
1st interview was HR
General questions abt what is your best project and why. What are the skills that u are proud of and that will make you a good software engineer.what do yourfriends say abt ur coding skills.what is the worst project and drawbacks in it . How will u improve onit given a chance. 1st tech interview 1. what is diff between process and thread. 2. how do u make a decision to use a process or a thread. 3. Asked explain how i approached in designing one of my projects( it was a web services project). 4.did u ever miss a deadline, i said No . so he said what did u do to always be on time. Also what if u are given so hard problem that u are sure u will misss the dealine what is your solution to the situation. I said I will talk to my manager and discuss alternate ways. 5. A C program to return index of first matching string given array of strings in sorted array. Optimize for space and time.. 6. tell the OSI protocol stack layers. 2nd tech interview. Fundas abt networking and security . more abt how tcp and sockets work . tell the test cases how a echo server could be vulnerable. 2 simple c progs concentrating on .. a)one line of code waas having c/*ptr /* was being treated as start of comment instead of division by pointer to an int b)Malloc was allocating more memory than required and then dereferenceing it. 3rd tech interview * How will you test a web server bandwidth or something i dont remember. *Design Cselect class in c++.( lot of concept and design issues esspecially main point to be know is to free all the dynamically allocated memory by various methods. *tell me how u will test a user interface . *how do ufind there is a loop in a linked list.
|
11 |
Round 1.
The interviewer asked me about a few things on my resume. Then he asked me to write a program to remove duplicates from a string. He asked me how I would test the code. Then he asked me what modifications I would do to incorporate changes for Unicode.
He then asked me to design a way to store names and numbers in a PDA. I was asked about the type of data structure I would use. I suggested a hash table. He agreed with it. He asked me how would I hash on both a name and number. He asked me to write the structure for it. He asked me about hashing, how to test how good a hash function is.
Round 2. This round started with a puzzle. The puzzle was – There is a five digit number – n1. Imagine the number to have been written on a rectangular number plate. If the plate is rotated so that the number is now seen upside down. And the new number is n2. He gave me the difference N2 – n1 and asked me to find n1. The he asked me to code a function Struct node* split(Struct node* list) After the execution of the function list would have all odd nodes and linked list of even nodes is returned. No mallocing and freeing should be done. He asked me how I would test it. Round 3. It started of with questions on device driver, since I had it on my resume. He asked me about PCI buses. Then I was asked how would I test a coca-cola can. He asked me to write code to insert a node at the start of the linked list. He asked me how I would test it. Then he asked me if this was the process is swapped how would I ensure data integrity, the next time process is swapped in. Round 4. He asked about a few of my earlier projects. He asked about situations in which I had to work in a team and I had diff ideas that the rest of the team mates. What had happened in those cases. He then asked me to write code to reverse words in a sentence and how I will test it. How will I do it using pointers. Round 5. This was with the team manager. He asked me 2 puzzles. One was if two trains are traveling at speeds x & y in opposite direction and are distance d apart. A bee starts from one train at speed z and moves towards the other and reverses direction when it hits the second one and continue to do the same till the 2 trains collide. How much dist will the bee travel. If there are 10 jars, and each contain 10 nails. Each nail weighs 10 grams except for nails in one jar, which weigh 9 gms. How to find out the defective jar in one weighing on a digital scale. |
12 |
HR
She was very nice and did not ask me any questions at all!
Gave me few pointer to remember while attending the interviews, which are not new but hearing them on the interview day was very useful for I day.
Round1 This mainly concentrated on my current job (SDET) and my contributions. we talked about how to introduce automation in no automation environment and what are the problems associated with it. I also explained the new end to end test system I was working on. Second half was problem solving Prob 1: This is a slightly modified version of infinite ball in boxes and one box has less balls of different weight (.1 low or high). Each ball weights 1 oz There are boxes of class ‘A’ each having 10 ball. There are 10 boxes of category ‘B’ each containing 10 boxes of class ‘A’ We know that in 10 boxes of B one has 10 boxes of type A but all these boxes were packed wrongly. The mistake was that instead of 10 balls they all have 9 balls. In one weigh find the wrongly packed B type box. Prob 2: Given 9 ball and a balance find the ball that is heavier and how many time do you have to weight. If you have N chances to weigh how may ball can you deal with (assuming that only one of them is heavier)? Round 2: Write a function to return the angle between 2 hands of clock at a given time. In the above figure is the setup of your friends cable setup. One fine day he calls you up and says that he is busy and asks you to tape his favorite show on his favorite VCR (VCR3). You walk into house 5 mins before the show and find that there is static on the TV. What do you do then? Round 3: Write a function to return the Hex equivalent of an integer. Write a function to check if given binary tree is balanced. Round 4: Lot of management questions What is you favorite MS product? windows. Why? Easy of use. Favorite component? Auto device drive detection. How do you test it? Coding : a string contains an error number each error number is of the format EXXXXX…. where XXXX is a number. Write a function to check if an error number exists in a string and if it does check if it is between 1 and 12 and if it is return the error code. Round 5: Questions on requirement gathering. A string contains token’s %XXXX% and each of XXXX is an environment variable. Write a function to return the string containing the equivalent string with values. Round 6: Questions on favorite/toughest project He explained me exchange servers routing and asked to test it. |
13 |
Teams: Avalon and Networking The day started with the traditional HR round. It was different tho' as my HR was late, she just explained the day to me and done...no questions!! Round1: The interviewer asked me asked me about my research work and what one of my projects. Then he asked me some situational questions. He asked me to test strstr() function. There was no coding question in the interview, as we spent more time on my projects. Round2: This was more coding!! we started with some introduction then I was asked to write test cases for testing a program - FTP Client and Server both. earlier we had discussed about its design. Then I was asked to code removeElem(int key, struct node **head). I was supposed to handle removal of all the elements matching Round3: Lunch Interview. We drove to a restaurant nearby and discussed the teams work in general and the work done by the interviewer himself. He was into HTTP stack and I had done a HTTP proxy in one of my school projects. So he started asking me questions about the design and what features we had in it. how did we test it. some design issues like how wud you handle caching in a forked proxy server. Ans: shared memory or shared directory. then general questions abt my research and behavioral like how do you tackle non-agreement in a team. Round4: This guy was really impressive. He told me abt his work which i really got interested. He asked me to code strstr(). He asked me about two of my projects which were similar to what he was working on. Then he asked me a puzzle - 2 poles 100m long and a rope hanging between them which is 150m long. The closest point of the rope from the ground is 25m from the ground. What is the distance between the poles?? He asked me one more puzzle: 50 red and 50 blue marbles. how to maximize the probability of chosing red marble when given 2 jars where we can put the marbles? Then we had some discussion about one of my project. Round5: He asked me all sorts of behavioral questions like why MS, where do you see yourself in 3-4 yrs. He asked me to test line(x1,y1,x2,y2). Then he asked me to come up with 5 best test cases for the same. He was happy with that. Then he gave me a puzzle - 9 marbles find the heaviest/lightest. how many weighings?? Then general discussion about my interests and the teams work. |