Multiple Choice
What does the following statement do? vector<int> v(10, 2) ;
A) It creates a vector object and initializes all the first two elements with the values 10 and 2.
B) It creates a vector object with a starting size of 2 and the first element initialized with the value 10.
C) It creates a vector object with a starting size of 10 and the first element initialized with the value 2.
D) It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
Correct Answer:

Verified
Correct Answer:
Verified
Q5: To access an array element, use the
Q7: What will the following code display?
Q7: This vector function is used to insert
Q8: What will the following code display? int
Q10: A vector object automatically expands in size
Q17: Each individual element of an array can
Q18: A two-dimensional array is like _ put
Q33: Arrays may be _ at the time
Q43: Which of the following is a valid
Q55: When writing functions that accept multi-dimensional arrays