1. Home
  2. MCQs by exam
  3. NTS
  4. Computer Science MCQs

NTS MCQs – Computer Science MCQs · Page 9

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

Showing 201–225 of 455

What happens when std::map is indexed with operator[] using a key that is not present?

  1. An exception of type std::out_of_range is thrown at once
  2. A null reference is returned to the caller
  3. The call fails to compile for missing keys
  4. A default-constructed value is inserted for that key Correct answer
MCQSEXAM Read explanation