Same test every-time.
- 1st round:
- He asked me to write code for hello world in C. Then he asked where this printf is stored and how compiler knows where to check that thing. If printf declaration is moved to the program will it get executed. I told him that I am not aware of these things.
- Connect Nodes at Same Level without using extra space.
- Design a transaction system for a bank with many atms across. He asked me if you want to deal with the bank how will you explain them the model and all the software and hardware requirements. He wanted a multithreaded client- server interaction model and the database requirements.
- 2nd round:
- 3rd round:
- Implement a push pop operations in a stack. Implement a queue using stacks. Remember there is further optimization, he asked me for that.
- Explain virtual memory and how mapping is done.
- Explain multithreading and how global, static etc variables are stored and accessed by threads.
- Write complete code for the number of ways a frog can reach nth step by jumping 1 or 2 steps.
- 4th round:
- Replace a string with another string in a paragraph. Which data structure you will use. Complete code.
- There are balls of red, blue and green color. How will you sort them.
- Implement a generic swap function. I wrote a function which swap the pointers but he wanted me to swap the complete memory blocks not just the pointers.
- Indirectly he was asking me to implement memcpy function.
- 5th round:
- 6th round: Director round
- Write a function which returns 1 when 2 is passed and return 2 when 1 is passed.
- 1 number is missing from an array(1 to n). find that
He just wanted sum of n terms minus sum of array solution.
Now correlate the above two problems.
- He asked me what I do at my home after office.
I told him that I read news, quora and some articles. So he asked if I remain updated with the news and then asked me questions like J&K election results, CM of some states and latest android version.
- What if I do if I would have everything.
Why not go for further studies.
- 7th round: HR
- Tell me about yourself. Current CTC and notice period.
I would suggest to go through pointers and how the things actually work from scratch like they would ask you to implement any generic library in-built function. Also read OS and oops concepts. If you don’t know any topic simply tell them.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.