I applied through an employee referral. The process took 5 days. I interviewed at Bloomberg (Londra, Inghilterra) in Jul 2015
Interview
first round of telephone interview with a software engineer, which lasted about 1 hour. classical questions like why bloomberg, heap VS stack, exceptions, multithreading, hash functions. 2 tasks on hackerrank.
and at the end I asked him some questions like what he is currently working on, the structure of the team.
Interview questions [2]
Question 1
read the following code and tell me the output, and is there anything wrong about it?
#include <iostream>
class A
{
public:
A()
{
foo();
}
virtual void foo(int a = 10)
{
std::cout << "A = " << a << std::endl;
}
};
class B : public A
{
public:
B()
{
foo();
}
virtual void foo(int b = 20)
{
std::cout << "B = " << b << std::endl;
}
};
int main()
{
A* aPtr = new B();
aPtr->foo();
delete aPtr;
return 0;
}
write a function to compare 2 strings of the same length, find the number of different chars. e.g.
myCompare('bond','debt') = 2
myCompare('xxxx','yyyy') = 2
the 2 input parameters are const