Interactive Quiz for Chapter 12

Question
Your Answer Result/Explanation
12.1
Write a statement that declares an empty vector object v for int.
12.2
Write a statement that appends a string s into a vector v.
12.3
Write a statement that removes the last element from a vector v.
12.4
Write an expression that returns the size of a vector v.
12.5
Write a statement that assigns value 4 to an int vector v's first element using the subscript operator.
12.6
Write a statement that removes all elements from a vector v.
12.7
Write a statement that creates a vector v of 5 double values.
12.8
Write an expression that returns true if a vector is empty using the empty function.