Bloomberg LP Interview Question for Financial Software Developers






Comment hidden because of low score. Click to expand.
2
of 2 vote

Static variables are stored in BSS (Block Started by Sybmbol) segment. BSS is part of Data Segment.

- Brahmananda Reddy December 01, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

this is TRUE!

- dan January 16, 2011 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

all initialized static variables will stored in data part
and all uninitialized static variable (default initialized to 0) are stored BSS..
both data part and BSS are part of data segment.

- JackMaster January 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Correct

- sumeet March 07, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

that's the problem I had with bloomberg, this question is not clear. There are many kinds of static variables, local static, global static and class static and they mean different things in c/c++/java. How am I going to answer this?

- Ryan Zhang July 26, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Give all possible answers.

- Mahesh February 10, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

btw, the general answer is static variables are in the data segment(global) part of the address space of this program. However, it really depends on the implementation and the defintion

- Ryan Zhang July 26, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

in c++ both local static(function scope) and global static are stored in the same place in memory(not registers). Name mangling is done i.e local static var are fgiven a name with their func name and those which are global have file name .

- Anonymous July 27, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

This is not correct. In C, global variables are stored in stack, when you use "static" in front of a global variable, it only changes the linkage of that variable to internal, it doesn't change the storage place.

- Anonymous September 29, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variables are stored in permanent memory storage which are retained till the end of the program ie bss(block start by symbol)[uninitialized data] segment of data segment

- Anonymous July 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variables always stores at data segments and it is permanents storage

- rajnesh July 30, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think it is simply the Heap section since it is the class variable and has class scope.

- Rahul August 10, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Yes you are right. i guess, Interviewer was trying to findout wheather you are aware of heap and stack .

- Anant Kumar August 20, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

the heap always stores the dynamically allocated memory. There is always a separate segment of space called data segment where the global and perhaps the static variables are stored. This data segment is different from the code segment of the program and also different from the heap and stack.

- Prashant Singhal September 16, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

From the wikipedia, it seems all static(global/local) are stored in bss:

en.wikipedia.org_wiki_.bss

- Anonymous January 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Uninitialized static variables are stored in BSS segment and initialized static variables are stored in data segment.

- Avi June 19, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static int i;
printf("%u",&i);
i=10;
printf("%u",&i);

both print same address how??????

- nami October 17, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

what do you expect? you are looking the same variable i, dude.

- Anonymous October 25, 2012 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More