Exam 18: Exception Handling
Exam 1: C++ Basics37 Questions
Exam 2: Flow of Control33 Questions
Exam 3: Function Basics30 Questions
Exam 4: Parameters and Overloading31 Questions
Exam 5: Arrays32 Questions
Exam 6: Structures and Classes37 Questions
Exam 7: Constructors and Other Tools32 Questions
Exam 8: Operator Overloading,friends,and References31 Questions
Exam 9: Strings37 Questions
Exam 10: Pointers and Dynamic Arrays29 Questions
Exam 11: Separate Compilation and Namespaces35 Questions
Exam 12: Streams and File IO43 Questions
Exam 13: Recursion40 Questions
Exam 14: Inheritance30 Questions
Exam 15: Polymorphism and Virtual Functions34 Questions
Exam 16: Templates27 Questions
Exam 17: Linked Data Structures30 Questions
Exam 18: Exception Handling29 Questions
Exam 19: Standard Template Library46 Questions
Exam 20: Patterns and Uml22 Questions
Select questions type
A function declared thus: void func(argument_list)throw();should throw no exception of any type.
(True/False)
4.9/5
(40)
A function uses an exception specification that includes only int,but an exception of type double is thrown.A catch block is provided that catches a double,so things proceed properly.
(True/False)
4.9/5
(33)
A function that satisfies its preconditions but cannot fulfill its postconditions should throw an exception.
(True/False)
4.8/5
(39)
In type matching to select a catch block,only exact matches work.
(True/False)
4.8/5
(37)
The situations where exceptions are used put the try block with the throw statement followed by the catch block all in one function.
(True/False)
4.9/5
(32)
Write just a catch block with a catch block parameter type that will catch all exceptions that are yet uncaught.
(Essay)
4.7/5
(38)
The context in which the throwing of an exception is detected is the try block.
(True/False)
4.8/5
(34)
Showing 21 - 29 of 29
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)