Bloomberg LP Interview Report
- 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
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 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 is a pointer?
- 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 static?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 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 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 are abstract data types?
- Asha February 12, 2009| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Object Oriented Design