Which of the following is not true of class template vector?
A) The size of a vector can be changed after it is declared.
B) A vector can be assigned to another vector by using the assignment operator.
C) A vector object can be initialized with a copy of another vector by invoking the copy constructor.
D) A vector can store only data of type int.
Correct Answer:
Verified
Q1: Linear search can be used on:
A) Unsorted
Q2: Using square brackets ([]) to retrieve vector
Q4: Which of the following tasks cannot be
Q5: You can sort an array with the
Q6: A double subscripted array declared as array<array<int,
Q7: When using exception handling, place any code
Q8: In a typical nested for loop (not
Q9: Constant variables:
A) Can be assigned values in
Q10: Assume that the array named items contains
Q11: Which of the following is not a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents