Goldman sachs interview Questions for Software engineer
First ROund Written test
1.Write a program to find square root of x?
2.Write a Prgram to reverse a linklist(with out extra node)?
3.Given 2 words , write a code to test whether they are anagrams or not?
4.Can return type of an overloaded function be different in C++,write code and explain?
5.Write a singleton pattern ?describe its use and implementation?
Second round Interview
1. Asked about my project related stuff
2. Asked Unix commands
3.What things should you take into account when you are planning to use multiple threads in your program. And the one connected to this was: What is deadlock and how do you prevent it?
4.What is STL auto_ptr? How do you use it and what problems should you be aware of when using it.
5. What is smartpointer ,write code and explain why we use it?