Examveda

Which of the following is true about exception handling in C++?
i. There is a standard exception class in C++ similar to Exception class in Java.
ii. All exceptions are unchecked in C++, i.e., the compiler does not checks if the exceptions are caught or not.
iii. In C++, a function can specify the list of exceptions that it can throw using comma separated list like following.
void fun(int a, char b) throw (Exception1, Exception2, ..)

A. i, iii

B. i, ii, iii

C. i, ii

D. ii, iii

Answer: Option B


Join The Discussion

Related Questions on C plus plus miscellaneous

What is the difference between '++i' and 'i++' in C++?

A. None of the above

B. They both have the same effect

C. '++i' increments the value of 'i' before returning it, while 'i++' increments the value of 'i' after returning it

D. '++i' increments the value of 'i' after returning it, while 'i++' increments the value of 'i' before returning it