When would you use a deque in preference to a vector?
What will be an ideal response?
Applications that require frequent insertions and deletions at both ends of a container
normally use a deque rather than a vector. Although we can insert and delete elements
at the front and back of both a vector and a deque, class deque is more efficient
than vector for doing insertions and deletions at the front.
You might also like to view...
A server administrator wants to upgrade the memory of the server using two memory modules. The server has two banks of memory with the following slots available: A2, A3, A4, B2, B3, and B4. In which of the following two slots should the administrator install the additional RAM?
A. Slots A2 and A3 B. Slots A2 and B2 C. Slots A2 and B4 D. Slots B2 and B3
What is a memory leak?
What will be an ideal response?