--:--









Quiz for Standard exceptions

Course: C++ Language | Subject: Unit 10 | Topic: Exception Handling



Logo

Q1: Which class is the base class for all standard exceptions in C++?

Logo

Q2: Which standard exception is thrown when memory allocation fails?

Logo

Q3: Which standard exception is used for range errors in containers?

Logo

Q4: Which exception class represents logic errors detected during runtime?

Logo

Q5: Which exception is typically used for runtime errors?

Logo

Q6: Which exception is thrown by dynamic_cast on failed pointer conversion?

Logo

Q7: Which exception class represents type information errors?

Logo

Q8: Which standard exception indicates overflow errors?

Logo

Q9: Which exception is used for underflow conditions?

Logo

Q10: Which exception indicates an invalid container size?

Logo

Q11: What is the base class of std::bad_alloc?

Logo

Q12: Which standard exception is thrown on failure of std::vector::at()?

Logo

Q13: Which header file defines the standard exceptions?

Logo

Q14: Can you catch all standard exceptions by catching std::exception?

Logo

Q15: Which exception is thrown when a bad cast occurs with references?

Logo

Q16: Is it mandatory to catch exceptions derived from std::exception?

Logo

Q17: Which exception signals an error that could have been detected before program execution?

Logo

Q18: What does std::exception::what() return?

Logo

Q19: Which exception class is thrown when a container operation is invalid?

Are you ready to start test? Set your time limit