II. Each Question Carries 2 Mark.
1) An exception is an event that occurs during the execution of a program that disturbs the normal flow of instructions. It is basically a short hand to indicate exceptional event.
a) False b) True
2) The exception object contains information about the _________, including its type and the State of the program when the error occurred.
a) Program b) exception c) both d) None
3) The runtime system searches backwards through the call stack, beginning with the method in which the error occurred, until it finds a method that contains an appropriate exception handler.
a) False b) True
4) Runtime exceptions are those exceptions that occur with in the java runtime system.
a) False b) True
5) When you cross the array range, then the following exception will be raised.
a) ArrayInexOutOfBoundsException b) DivideByZero
c) both d) None
6) The finally clause is an optional the part of try/catch block. The statements within the finally clause are executed irrespective of the fact that an exception is thrown or not.
a) False b) True
7) In order to throw an exception, you have to create an appropriate __________.
a) Class b) method c) object d) None
8) Users can create their own exception classes and throw those exceptions. But the user defined Exception class must be derived from ____________.
a) Error b) Exception c) Throw able d) None
9) The programmers are forced to specify or catch the exceptions that might be caused by various___.
a) Objects b) classes c) methods d) None
10) Input/output operations may be raised the following exception when we deal with i/o devices.
a) Exception b) IO Exception c) My Exception d) None
II. Answer – 2 Mark.
1. B 2. B 3. B 4. B 5. A 6. B 7. C
8. B 9. C 10. B
.