Answer the following statements true (T) or false (F)
1) Using iterators where appropriate is another example of the principle of least privilege.
2) Many algorithms operate on sequences of elements defined by iterators pointing to the
first element of the sequence and to the last element.
3) Function capacity returns the number of elements that can be stored in the vector before
the vector needs to dynamically resize itself to accommodate more elements.
4) One of the most common uses of a deque is to maintain a first-in, first-out queue of elements.
In fact, a deque is the default underlying implementation for the queue adaptor.
5) push_front is available only for class list.
1. False. Using const_iterators where appropriate is another example of the principle
of least privilege.
2. False. Many algorithms operate on sequences of elements defined by iterators pointing
to the first element of the sequence and to one element past the last element.
3. True.
4. True.
5. False. It’s also available for class deque.
You might also like to view...
The command to exit Emacs and save your file is:
a: [Ctrl-x] s b: [Ctrl-x] [Ctrl-s] c: [Ctrl-x] save d: [Ctrl-x] filename e: [Ctrl-s]
If the op code table is sorted alphabetically, the ____ search algorithm is used to find an op code.
A. sequential B. binary C. op code D. table
AC Case 1-1Ms. Lipscomb is a high school counselor who manages senior students' records. She is responsible for keeping track of course records, grades, tests taken, and prospective colleges. She would like to create a database in Access to manage all of this data. What would Ms. Lipscomb click to use an installed template to create her database?
A. File tab, New B. Create tab, Application Parts C. File tab, Open D. Create tab, Quick Start
?An external style sheet is used when one wants to create styles for a single webpage that are different from the rest of the website.
Answer the following statement true (T) or false (F)