Bloomberg LP Interview Questions
- 0of 0 votes
Answers//Online Test
- TopCoder February 21, 2010
class Base {
public :
virtual void method () = 0;
private :
int n;
};
void Base::method() { n = 1;}
class D1 : Base {};
class D2 : public D1{
int i;
void method() {i = 2;}
};
Q.Does it compile , what will it have to add to compile| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
Answers//online Test
- TopCoder February 21, 2010
CLASS A{
PUBLIC :
INT &I;
INT J;
A(){
INT J;
I = J;
}
};
//Where to init reference , in member init list or ctor| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
Answerswrite program to inverse order of a given integer.You can not convert integer into string and convert back.
- Loh February 18, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersDifferences between C++ and Java polymorphism
- Loh February 18, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersDifferences between C++ and Java
- Loh February 18, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersDifferences between C and C++
- Loh February 18, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersWhat is the difference between initializing values using overloaded new and the constructor???
- Saurabh February 16, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answersasked simple question about context switching, advantage/disadvantage of process vs thread etc
- Anonymous February 15, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Threads - 0of 0 votes
AnswersWhat happens when the method is called? Explain
- Padmanabha Reddy Kolagatla February 03, 2010public int normal(){ try{ return 10; }finally{ return 20; } }
| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
AnswersDid you use any Maven repository like nexus? How Maven is better than ANT
- Benjamin January 24, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
AnswersHow inheritance works in Hibernate, for example 1. Map one table per concrete class. explain all
- Benjamin January 24, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
AnswersGenerate a random number for SSN i,e int of xxx-xx-xxxx (9 digits), then write a function that checks if xxx and xx and xxxx and the total xxx-xx-xxxx is a prime number and return true or false. What is the complexity of the algorithm?
- Benjamin January 24, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
AnswersYou are given two arrays
- SR January 21, 2010
int Array1[n], Array2[n];
Each array contains numbers which are half even and half odd. Write C code that will return two arrays one having only even numbers and other having only odd numbers. You are not allowed to use additional data structures like hash,array etc but can use temp variables. The solution should have O(n) complexity.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm - 0of 0 votes
AnswersYou have a database which catalogs all the buildings in NY. You decide to use a 4 byte integer value as unique identifier for the table. Will it work ?
- SR January 21, 2010
(The answer would reduce to finding number of buildings in NY)| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers - 0of 0 votes
AnswersWhat types of data structures can you use for Look ups? If you have an associative array A with index "hello". How is A["hello"] actually evaluated , as in how does system map to a memory location using index "hello"
- SR January 21, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Data Structures - 0of 0 votes
AnswersWhat is your salary expectation?
- FA January 14, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Behavioral - 1of 1 vote
AnswersDesign an algorithm to count number for Bit 1s in byte
- CPPDEVELOPER January 11, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Bit Manipulation - 0of 0 votes
AnswersWrite C Code for Fibonacci Series. Write both the Iterative and Recursive implementation.
- CPPDEVELOPER January 11, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C - 0of 0 votes
AnswersA dictionary is given. You have a word which may be misspelled. How will you check if it is misspelled?
- Siva December 30, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersHow to reverse an integer. What if it is a -ve or +ve number?
- Siva December 30, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm - 0of 0 votes
AnswersA linked list has a loop.
- kcoder December 18, 2009
Find the kth node from the end of the loop.
For example:
head -> 1 -> 2-> 3-> 4-> 5
|_______|
Find the 2nd node from the end of the loop which is node 5.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 0of 0 votes
AnswersFind the maximum subsequence sum of an array of integers which contains both positive and negative numbers and return the starting and ending indices within the array.
- kcoder December 18, 2009
For example:
int array[] = {1, -2, -3, 4, 5, 7, -6}
The max subsquence sum is 4+5+7= 16 and start index is at 3 and end index is at 5.| Report Duplicate | Flag | PURGE
Bloomberg LP Yahoo Software Engineer / Developer Algorithm - 0of 0 votes
AnswersYou have one dice.
- kcoder December 18, 2009
If I roll a 1, I win.
If you roll a 6, you win.
What is the probability that you will win?| Report Duplicate | Flag | PURGE
Bloomberg LP Math & Computation Brain Teasers - 0of 0 votes
AnswersThere are 3 guys in a room, persons A, B and C. They are shown a box with 3 black hats and 2 white hats. They are all blindfolded and a random hat is placed on each head. Person A's blindfold is removed and is asked which colour hat he has on - answer is "I don't know". Person B's blindfold is removed and he gives the same answer. Person C answers, without having their blindfold removed, the colour of their hat and they are correct. What colour is person C wearing, and how did he know?
- Murtuza Husain December 15, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers - 0of 0 votes
AnswersYou have two ropes of equal length and an unlimited supply of matches. The ropes each take 60 minutes to burn, but do not burn uniformly (ie it does not necessarily take 30 minutes to burn half the rope). How do you use the ropes and matches to time 45 minutes?
- Murtuza Husain December 15, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers - 0of 0 votes
AnswersA gold bar is in 7 segments and you need to cut off a segment and pay a member of staff every day. At the end of each day, they must have one more gold segment than they had the previous day. How do you issue 7 segments over 7 days with the fewest amount of cuts?
- Murtuza Husain December 15, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers - 1of 1 vote
AnswersGiven an array of any length holding integers (a buffer of bytes), write an algorithm to return the first unique element (ie not repeated in rest of the array).
- Murtuza Husain December 15, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm Arrays