Exception Handling on C# related Questions and Answers

Question 1 : Which of these keywords are used for generating an exception manually?
1. try
2. catch
3. throw
4. check
View Answer   Discuss with Members

Question 2 : Which of these keywords are used for the block to handle the exceptions generated by try block?
1. try
2. catch
3. throw
4. check
View Answer   Discuss with Members

Question 3 : Which of the keywords are used for the block to be examined for exceptions?
1. try
2. catch
3. throw
4. check
View Answer   Discuss with Members

Question 6 : Which of these classes is related to all the exceptions that are explicitly thrown?
1. Error
2. Exception
3. Throwable
4. Throw
View Answer   Discuss with Members

Question 7 : Which of the following keywords is used by the calling function to guard against the exception that is thrown by called function?
1. try
2. throw
3. throws
4. catch
View Answer   Discuss with Members

Question 8 : Which of these exceptions will occur if we try to access the index of an array beyond its length?
1. ArithmeticException
2. ArrayException
3. ArrayArguementException
4. IndexOutOfRangeException
View Answer   Discuss with Members

Question 9 : Which of these exceptions handles the divide by zero error?
1. ArithmeticException
2. MathException
3. IllegalAccessException
4. IllegarException
View Answer   Discuss with Members

Question 10 : A single try block must be followed by which of these?
1. finally
2. catch
3. Both finally & catch
4. None of the mentioned
View Answer   Discuss with Members


View 1 - 10 of 41 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter