1. Home
  2. MCQs by exam
  3. PPSC IT
  4. Computer Science MCQs

PPSC IT MCQs – Computer Science MCQs · Page 9

346 multiple choice questions typical of the PPSC IT exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 201–225 of 346

What is the difference between size() and capacity() on a C++ std::vector?

  1. Both return the same value after every operation
  2. capacity counts only elements added with push_back
  3. size is elements stored; capacity is allocated slots Correct answer
  4. size is allocated slots; capacity is elements stored
MCQSEXAM Read explanation