Skillset can help you prepare! Sign up for your free Skillset account and take the first steps towards your certification.
In most languages, where are the local variables stored?
Heap
Data segment
Call stack
BSS segment
The stack is used to store the static variables and the heap is used to store the dynamic variables. EDIT : Disagree, Call stack if for parameters when calling a function, not for 'local' variables. Idiots or possibly just an extremely poorly worded question (AGAIN!!): The stack is used to keep track of variables/parameters local to a function in a program. A heap is a kind of a global memory pool. A function can allocate memory on the heap if it wants the data to live longer than the function itself. Objects allocated on the heap are accessible to all the functions, given they have the reference/address of the object to access it.
Train with Skillset and pass your certification exam. Faster. Guaranteed.
Study thousands of practice questions that organized by skills and ranked by difficulty.
Create a tailored training plan based on the knowledge you already possess.
Know when you’re ready for the high-stakes exam. Have the confidence that you will pass on your first attempt.