1. | It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class.
|
|||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
2. | Which of the following statements is correct about the C#.NET program given below if a value "ABCD" is input to it? using System; |
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
3. | Which of the following is NOT an Exception?
|
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
4. | All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not.
|
|||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
5. | Which of the following statements is correct about the C#.NET program given below if a value "ABCD" is input to it? using System; |
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
6. | Which of the following statements is correct about the C#.NET program given below if a value "6" is input to it? using System; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
7. | Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor.
|
|||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
8. | Which of the following statements are correct about exception handling in C#.NET? 1 try blocks cannot be nested. 2 In one function, there can be only one try block. 3 An exception must be caught in the same function in which it is thrown. 4 All values set up in the exception object are available in the catch block. 5 While throwing a user-defined exception multiple values can be set in the exception, object.
|
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|