Answer the following statements true (T) or false (F)
1. Vector assignment is well behaved.
2. If v is a vector and i is an int variable, then in the following the value of i can be any nonnegative int value: v[i] = i;
3. If we use an out of range index with a vector, there will be an error message from the compiler.
4. Using the resize member function alone, you can increase the capacity of an STL vector.
5. If vector v has fewer than 24 elements and you call v.resize(24) the newly allocated elements are not initialized.
1. TRUE
2. FALSE
3. FALSE
4. TRUE
5. FALSE
You might also like to view...
The technique of implementing each stack method as a call to a List method is called __________.
a. delegation. b. delimiting. c. assigning. d. shifting responsibility.
In the figure above, the box indicated by item 3 points to ____.
A. the Design tab to access a list of themes B. the All Themes list C. additional themes that might be available online D. the link that allows you to save the theme
On an average, linear search searches
A. one fourth of the list B. just one element in the list C. half of the list D. the whole list
The title bar contains information relative to the open file including tools for changing the view of the file and for changing the zoom size of onscreen file contents.
Answer the following statement true (T) or false (F)