Bloomberg LP Interview Report
- 0of 0 votes
AnswersI got phone interviewed with Bloomberg.
1)diff bet class and structure
2)syntax of copy constructor
3)why we need copy constructor?
4)why we need overloaded = operator?
5)signature of overloaded = operator for a class?
e.g. Myclass & operator =(const Myclass &)
6)why & used in return type of = operator ?
7)suppose :class Myclass{ public: Myclass(int a){m=a;}; private : int m; };
a)how will u create an array of objects of Myclass on stack?
- DPS Prog May 15, 2009
b)how will u crete an array of objects on heap?
8)what precautions should be taken to write a class's destructure?
9)what will u do to prevent others from creating more than one instances of ur class?
10)how will u make singleton thread safe?
10.1) what problem may occure with singleton at run time?
11)what is diff between "operator new" and "new" ?
12)what happens if new fails to allocate memory?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersSuppose there is a stream of numbers 1 to 9. It may contain duplecates.
- DPS Prog May 15, 2009
which data structure will u use.?
Which data structure will u use other than provided by STL?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Data Structures