Q: Which is used to allocate and deallocate storage for objects during the execution?
Solution: Free store is a pool of memory available for you to allocate and deallocate storage for objects during the execution of your program.
Q: Which operators are used in the free store?
Solution: new and delete operators are used to allocate and deallocate the memory for the program.
Q: What type of class member is operator new?
Solution: static is a type of class member is operator new.
Q: What must be an operand of operator delete?
Solution: The operand of delete must be a pointer returned by new.
Q: How can object be allocated outside the object lifetime?
Solution: void* object can be allocated outside the object lifetime.
Q: Pick out the wrong header file about strings.
Solution: The standard header files for string is string and regex. So the wrong one presented here is ios.
Q: Which is best for coding the standard library for c++?
Solution: Best coding for the standard library for c++ is: -> No trailing underscores on names -> Complex objects are returned by value -> It should have a member-swap().
Q: What is meant by vector in the container library contains?
Solution: Vector in the container library contains sequence container that manipulates and encapsulates dynamic size arrays.
Q: Pick out the wrong header file.
Solution: There is no header file namedin C++.
Q: What is the use ofheader
Solution:header file contains standard exception files used for exception handling in a C++ program.
You Have Score    | /10 |