If a vector named numbers has 20 elements in it, what is the result of executing the following statement?
numbers.resize(10);
a. no change
b. the first 10 elements are removed
c. the last 10 elements are removed
d. this causes a run-time error
c. the last 10 elements are removed
You might also like to view...
If we developed an algorithm that performs 5 + 2 log n + n operations, we can say that the algorithm has a complexity of which of the following?
a. O(n2) b. O(5) c. O(log n) d. O(n)
Excel displays a series of ________ to indicate that the column width is too narrow to display entire cell contents
A) pound signs # B) exclamation marks ! C) asterisks * D) ampersands @
In a browser, to view a ScreenTip for a hyperlink, you must:
A) point to the hyperlink. B) open the Insert Hyperlink dialog box. C) click the hyperlink. D) open the HTML file with Word.
The STL algorithm ____ copies elements from a source range to a destination range.
a. copy b. copy_backward c. copy_forward d. replace