Goldman Sachs Interview Questions
- 0of 0 votes
AnswersHow would you design a software like Microsoft Excel? Basically, the interviewer wanted to know how I would store the cells and the relationship between cells. For examples, let there be 4 cells, A1, B1, C1 and D1.
- newbie August 18, 2011
Let values of the cells be following:
A1 = 10
B1 = A1 + 3
C1 = A1 * 2
D1 = C1 + B1
In this case, how would I store relationship between cells and if I make a change in A1, how would that propagate to other cells.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer General Questions and Comments - 0of 0 votes
Answersdefine class such that you can make object of this class on a heap but not on the stack.
- Anonymous June 20, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer C++ - 0of 0 votes
Answersdefine a class such that you can make object of this class but you can not inherit this class.
- Anonymous June 20, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer C++ - 0of 0 votes
AnswersFind the distance of a node from the root in a binary tree.Print error message if node doesn't exist.
- Sneha Sharma June 07, 2011
Extend the problem to distance of any node to any other node that is below it.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Trees and Graphs - 0of 0 votes
AnswersGiven a number display it in the seven segment display format.
- DNS May 23, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersWhat are the different types of cast in C++? Difference between static, dynamic, reinterpret cast.
- Nupur April 28, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer C++ - 0of 0 votes
AnswersDetect loop in a linked list. What is its complexity. Optimize it to O(n).
- Nupur April 28, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer Algorithm - 0of 0 votes
AnswersDifference between pointer and reference. Can a NULL pointer be used as a reference?
- Nupur April 28, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer C++ - 0of 0 votes
AnswersYou have a Word Processor type Program. There are 2^16 fonts. Each font is associated with a 4MB geometric instruction set. This is written in a flat file.
- Nupur April 28, 2011
Everytime a user selects a font this file is searched linearly. Develop a program to optimize the font search. (You could either add some functionality improvement in the word processor application while font selection or in the font search file).| Report Duplicate | Flag | PURGE
Goldman Sachs Developer Program Engineer Algorithm - 0of 0 votes
Answersvoid fun(int *p){ int v = 0; p=&v;v++;}
- Hemant Parashar April 18, 2011
int main()
{
int* p;
fun(p);
}
what will be the output. One of the options was compiler error which is the right one as tested by me.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer - 0of 0 votes
AnswersDesign a reference counted smart pointer.
- Hemant Parashar April 18, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++ - 0of 0 votes
Answers1st Round interview:
- Harsh April 16, 2011
Command to sort the file contents in Linux| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Linux Kernel - 0of 0 votes
AnswerWritten round pattern:
- Harsh April 16, 2011
15 Question - Aptitude
15 Question - SQL / JAVA / C++ (any 2 sections, objective)
Subjective:
SQL - School, Courses & Teachers scenario. Asked to write 3 queries.
These queries where slightly complicated as they all required use of Inner Query / JOINS
JAVA - Write a program to simulate the digital display (as in Calculator)
C++ - Implement a generic smart pointer with reference counting.
C++ objective was heavy on operator overloading.
SQL objective was no cakewalk either.
Aptitude is a compulsory section and questions were of moderate difficulty (Ratios, Work and Time, SI, CI, Probablity, Permutation, Circles etc)| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
Answers1st Round interview:
- Harsh April 16, 2011
Asked to write a query which would join 3 tables to query for rows.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Database - 0of 0 votes
Answers1st Round interview:
- Harsh April 16, 2011
Stored Proc vs Normal Query. Which is faster and why?| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Database - 0of 0 votes
AnswersHow can four employees calculate the average of their salaries without knowing other's salary?
- ajit February 25, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Brain Teasers - -1of 1 vote
AnswersI heard some people mentioning an onsite test for developer position. I was wondering if any of you had to take it. Also, what kind of questions were on it? Thanks!
- anonymous February 24, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Financial Software Developer Coding - -1of 1 vote
Answersoutput of following Program
- RS February 19, 2011
class A
{
public:
virtual void Fun1(int no=10)
{
cout<<"A::Fun1";
}
};
class B
{
public:
virtual void Fun1(int no=20)
{
cout<<"B::Fun1()";
}
}
int main()
{
B b;
A &a =b;
a.Fun1();
}| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++ - 0of 0 votes
AnswersWhat are the mandatory conditions when compiler synthesizes the constructors.
- RS February 13, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++ - 0of 0 votes
Answersclass Foo
- RS February 13, 2011
{
int a;
public :
virtual void Fun1() {};
};
Class X
{
Foo f;
public:
X()
{
memset(&f,0x0,sizeof(f);
}
}
int main()
{
X x;
}
Is there any problem in this code snippet. if yes what are the problems.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++ - 0of 0 votes
AnswersWhat is virtual function?
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst C++ - 0of 0 votes
AnswersWhy Goldman Sachs.
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Behavioral - 0of 0 votes
AnswersDesign ATM machine.
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Object Oriented Design - 0of 0 votes
Answerscall by reference, call by value.
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst C++ - 0of 0 votes
AnswersDifference between set, list.
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst C++ - 0of 0 votes
AnswersQuick sort, bubble sort, merge sort and their complexities
- sbtech8 January 26, 2011| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Algorithm