Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.
51) What if I forget the `[ ]' when `deleteing array allocated via `new X[n]'?
Answer: Basically, it is the duty of the programmer, and not the compiler, to get the connection between the ‘new X[n]’ and the ‘[]’. If the programmer fails in this, the compiler will not generate a runtime error or compile-time error but will result in a heap corruption. Otherwise, the program will die.
52) What are free store operators?
Answer: Operators that facilitate dynamic memory allocation, i.e., allocation new and de-allocation delete operators are called free store operators.
53) What do you mean by free storage list or AVAIL list?
Answer: A list keeping account of available free memory is called an AVAIL list or free storage list.
54) What is meant by static memory allocation?
Answer: When the amount of memory to be allocated is known beforehand and the memory is allocated during compilation itself, it is referred to as static memory allocation.
55) What is dynamic memory allocation?
Answer: Allocation of memory at runtime is referred to as dynamic memory allocation.
ALSO READ:
Frequently Asked C++/OOPS Interview Questions With Answers – 12.
Frequently Asked C++/OOPS Interview Questions With Answers – 13.
Frequently Asked C++/OOPS Interview Questions With Answers – 14.
Frequently Asked C++/OOPS Interview Questions With Answers – 15.
Frequently Asked C++/OOPS Interview Questions With Answers – 16.
… Back To C++/OOPS Interview QnA Index.
Comments
Post a Comment
Please share your opinions and suggestions or your experience in the comments section. This way we can all help each other...
Experienced guys can share their resumes at admin@interview-made-easy.com