1. Home
  2. Subjects
  3. Computer Science MCQs
  4. C++ and Object-Oriented Programming

C++ and Object-Oriented Programming MCQs · Page 4

115 multiple choice questions with answers in Computer Science MCQs.

Showing 76–100 of 115

What does std::vector<int>::push_back do in C++?

  1. Inserts an element at the front of the vector
  2. Replaces the element at the current index position
  3. Reserves capacity without adding an element
  4. Appends an element at the end, growing if needed Correct answer
MCQSEXAM Read explanation