Financial Software Developer Interview Questions
- 0of 0 votes
AnswerAsked me about sorting a vector of integers
- Steve August 24, 2010
I told him used std::sort
Then asked me how to sort a vector with objects of class StudentData. I told him use std::sort(ve.begin(), vec.end(), sortRoutine)
The sortRoutine will be define static or global scope in header file.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersGiven a function: func(CString str1, CString str2). You need to remove all characters in str1 that occur in str2.
- Steve August 24, 2010
Initally i gave him O(n2) solution and he asked me to give more effient one.
So i gave him another solution where str2 is hashed in a hash-map. Iterate through str1 char by char and remove (left shift) the matching chars in str1.
Still he was not happy as the above approach was O(n) + O(m). He asked whether we can do it in O(n). I could not come up with O(n).| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm - 0of 0 votes
AnswersHow will you protect static data?
- Steve August 24, 2010
How do you make sure that static data is protected well enough.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersExplain what you understand by static in C.
- Steve August 24, 2010
Ans. I told him about static variables, static functions. Then he asked me the difference between static class vars and static defined in header file.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C - 0of 0 votes
AnswersWhat is polymorphism? Can you overload the same operator more than once?
- rk August 20, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
Answersdifference between static and new operator
- rk August 20, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
Answersjava:
- K L August 16, 2010
static void printN(int a, double b) {System.out.println("Print 1");}
static void printN(float a, int b) {System.out.println("Print 2");}
static void printN(double a, float b) {System.out.println("Print 3");}
static void printN(int a, int b) {System.out.println("Print 4");}
static void main(String args[]){
printN(2, 2.0f);
}
Which one will print and why?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Java - 0of 0 votes
AnswersThe private member in derived class
- WinXP July 16, 2010
Answer: Can be inherited only if the derived class is inheriting from base class with private access level
This is an on-line test. I don't know what the answer means.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswerUsing pointers to call a function is called as Answer: call by reference
- anonymous July 16, 2010
This is a multiple-choice question from on-line test. The statement above is a correct answer but I don't know why it is called call by reference.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersThe private member in derived class can be inherited only if the derived class is inheriting from base class with private access level
- anonymous July 16, 2010
This is a multiple-choice question from on-line test. The statement above is a correct answer but I don't know what it means.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswerUsing pointers to call a function is called as Answer: call by reference
- anonymous July 16, 2010
This is also multiple-choice question from on-line test. Anyone knows why it is called call by reference?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersThe private member in derived class can be inherited only if the derived class is inheriting from base class with private access level.
- anonymous July 16, 2010
This is a on-line test. The statement above is a correct choice. But I don't understand what it means.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersWhat is stack. what are the things that go in stack and in which order??
- asd June 26, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersWhat are zombie processes. how can we create a zombie process.
- asd June 26, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer - 0of 0 votes
AnswersAsked about zombie processes. What happens underneath when a unix shell executes a command in background (e.g., "gcc foo.c &")
- callbacker June 25, 2010
(Hint: we talked about SIGCHLD signal, signal handler, waitpid, return value of a process, etc)| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Operating System - 0of 0 votes
AnswersWhat is bridge pattern? Asked me to write skeleton of bridge pattern.
- callbacker June 25, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersThere are different types of GUI themes, and there are different types of buttons. When a user pushes a button, its outcome depends on the type of GUI theme selected, and the type of button pressed. Discuss your design approach.
- callbacker June 25, 2010
(Hint: double dispatch)| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersAsked a design problem where observer pattern fits perfectly.
- callbacker June 25, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersAsked about RAII, auto_ptr, shared pointer.
- callbacker June 25, 2010
Can we have containers of std::auto_ptr?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersWhats the use of reserve() method in vector? How does vector compare to a deque in terms of performance of push_back()'s.
- callbacker June 25, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersLets say you have a unix shell, and you type a unix command, say, for example "ls". What happens at the system level? (basically asking about fork() and exec() )
- callbacker June 25, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Operating System - 0of 0 votes
Answers1. A* a=new A();
- Xinyu Huang June 22, 2010
2. A b;
A *c=&b;
What is the difference between 1 and 2?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
Answersvoid foo(A a){}
- Xinyu Huang June 22, 2010
A* a =new A();
foo(*a);
A b=*a;
b=*a;
How many copy ctors of class A are called?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C++ - 0of 0 votes
AnswersYou have 1 white & 1 black container. White container contains 3 white balls and black container contains 4 black & 1 white ball. You remove one ball from black container and put it in white container. Now when you pick one ball from white container, what is the probability that it's a white ball.
- sum June 19, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Probability - 0of 0 votes
Answershow do you find the shortest distance (find a formula) for two points on the opposite vertices of a cube (shortest distance is actually sqrt(3) but can't cut through interior, must go along surface of cube)
- Anonymous June 16, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers