After line 9 runs, what are the items in the vector?

```
1 vector vNums;
2 vNums.push_back(10);
3 vNums.push_back(5);
4 vNums.push_back(15);
5 vNums.push_back(25);
6 cout << vNums.size();
7 vNums.pop_back();
8 cout << vNums.at(2);
9 vNums.pop_back();
10 vNums.pop_back();
11 vNums.pop_back();```

A. 10, 5
B. 5, 15
C. 10, 15, and 25
D. None of these are correct.


A

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true after the following statements are executed?

Set x = y Set y = x a. x and y contain their original values. b. x and y have swapped their values. c. y contains the value in x and x stayed the same. d. x contains the value in y and y stayed the same.

Computer Science & Information Technology

What is captioning? How does it differ from subtitles?

What will be an ideal response?

Computer Science & Information Technology

If you enter 1 0, what is the output of the following code?

``` #include using namespace std; int main() { // Read two intergers cout << "Enter two integers: "; int number1, number2; cin >> number1 >> number2; try { if (number2 == 0) throw number1; cout << number1 << " / " << number2 << " is " << (number1 / number2) << endl; cout << "C" << endl; } catch (int e) { cout << "A" << endl; } cout << "B" << endl; return 0; } ``` a. B b. AB c. A d. C

Computer Science & Information Technology

? When collaborators meet, they should establish an agenda and have one member keep notes of the topics discussed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology