Bloomberg LP Interview Questions
- 0of 0 votes
AnswersWrite the function Itoa. This is the most common question asked.
- Baski March 08, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 0of 0 votes
AnswersYou have an arbitrary sequence of space separated characters. Example, "a bc defga dcbaifk". Generate a new sequence with "(" and ")" added before and after the characters. The space should be eliminated.
- Baski March 08, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 0of 0 votes
AnswersIn a sequence of numbers 1..n, two numbers are missing. How will you find the two numbers.
- Baski March 08, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 0of 0 votes
Answers1. What does the 'final' key word do in Java?
- Bloomberg Interview February 22, 2009
2. Does C++ provide similar machanism? If not, how would you implement it?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersDo you know what a mutex is? Explain how it works.
- Bloomberg Interview February 20, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Threads - 0of 0 votes
Answers1. Do you know what a singleton is? Explain.
- Bloomberg Interview February 20, 2009
2. How do you make it thread-safe?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Object Oriented Design - 1of 0 votes
Answers1. What's the difference between a pointer and a reference?
- Bloomberg Interview February 20, 2009
2. What's the difference between a class and a struct?
3. How do you allocate memory in C++? What's the difference between malloc and new?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersWhat is the difference between pass by value and pass by reference?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersWhat are abstract data types?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersChar a[]=”abc” , char *a=”abc”; sizeof both? Where is “abc ” stored and whr is a and *a stored?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersWhat is a race condition?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Threads - 0of 0 votes
AnswersWhat is a deadlock and how do you avoid it?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Threads - 0of 0 votes
AnswersWhat is the difference between thread and process?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Threads - 0of 0 votes
AnswersWhat is static?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersSecond Round
- Asha February 12, 2009
=============
How do you know if a number is Odd or Even?
Write a program to reverse a string and reverse words in a string
How can u swap 2 variables without using temp variable (XOR)
Char abc[10] ;
Strncpy(abc,”abcdefghijklmn”,10);
What r the data types and values of below
Abc
*abc
Abc[5]
Abc+4
&abc[5]
(*abc)+15
Float j=20.5 int i=20
If we say i+j , wat will be value of it..How the compiler treats it
File
Void settime(char* buf); //its defined in some other module
Static char* gettime()
{
Char buf[80];
Settime(buf);
Return buf;
}
Int main()
{
Char *D= gettime();
Fprintf(stdout,d);
}
Wat is wrong wth this code… It compiles properly… whr exactly is the problem…
Draw stack for both functions… How n whn stack frame gets overwritten?
What is the problem if we make buf static instead of local..
If it’s a multithreaded , wats the problem?
If u r using mutex whr exactly u wil lock the code?
There is file containing lots of words… ex A Novel . How would find the 25 most occurred words from it…| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
AnswersWhat is a pointer?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersIf you were leading a team, how would you improve productivity?
- vinay January 27, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Production Engineer Behavioral - 0of 0 votes
AnswersHow do you use the Standard Template Library's std::sort() algorithm to sort an array declared as: int v[1000];?
- Anonymous January 23, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answersclass Parent{};
- Anonymous January 23, 2009
class Child::public Parent{};
Child*c=new Child;
Parent*p=c;
What needs to be added to the last line of the above sample code in order for the initialization of variable p to be legal? or it's legal?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
Answersstd::vector<std::string>vs;
- Anonymous January 23, 2009
Referring to the container definition above, which one of the following lines of code fills vs with five strings containing the word "hello"?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answersdone(int,int) throw(const char*,RangeErr);
- Anonymous January 20, 2009
What "done" does in this code?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersSomeClass *ptr=SomeClass();
- Anonymous January 20, 2009
SomeClass *ptr=SomeClass;
What's difference,or it's the same?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersHow do you debug a process which is consuming 90% of CPU?
- Anonymous January 17, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Linux Kernel - 0of 0 votes
Answerstypedef const char *month Table[3]
- Anonymous January 16, 2009
Create two monthTable arrays and initialize one of the two.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersHow do you keep track of how many objects in given class exist?
- Anonymous January 15, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answerstemplate<class T1;class T2;class T3>
- Anonymous January 15, 2009
int Pr(T1 a,T2 b,T3 c)
{
return a*b*c;
}
What's wrong?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
Answersclass x
- Anonymous January 15, 2009
{int i;
public:
int f() const;
};
{
return i++'
}
What's wrong with this code?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C