1. Home
  2. Subjects
  3. Computer Science MCQs

Computer Science MCQs · Page 9

992 multiple choice questions with answers across 24 topics.

Showing 201–225 of 992

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