Question Set

1. Which of the following statements are correct about exception handling in C#.NET? If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed. A program can contain multiple finally clauses. A finally clause is written outside the try block. finally clause is used to perform clean up operations like closing the network/database connections.






Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->Two statements are given followed by two conclusions I and II. You have to consider the two statements to be true even if they seem to be at variance from commonly known facts. You have to decide which one of the given conclusions is definitely drawn from the given statements. Statement : All virtuous persons are happy. No unhappy person is virtuous. Conclusions : I. Happiness is related to virtue II. Unhappy person is not virtuous.....
QA->There is no chance of your getting that medicine Frame a question to the above statement from the following....
QA->Which one of the following statements with regard to the "Make in India" initiative of the Government of India is not correct?....
QA->Name the type of illustration which contains only solid areas of black or any process color without tints which can be reproduced without half toning ?....
QA->Correct sentences among the following are: ) The tea is too hot that I cannot drink (2) Work hard, lest you should miss the chance (3) Unless you study well, you will fail (4) Unless you study well, you will pass....
MCQ->Which of the following statements are correct about exception handling in C#.NET? If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed. A program can contain multiple finally clauses. A finally clause is written outside the try block. finally clause is used to perform clean up operations like closing the network/database connections.....
MCQ->Which of the following statements are correct about exception handling in C#.NET? try blocks cannot be nested. In one function, there can be only one try block. An exception must be caught in the same function in which it is thrown. All values set up in the exception object are available in the catch block. While throwing a user-defined exception multiple values can be set in the exception, object.....
MCQ->Which of the following statements are correct about exception handling in C#.NET? If our program does not catch an exception then the .NET CLR catches it. It is possible to create user-defined exceptions. All types of exceptions can be caught using the Exception class. CLRExceptions is the base class for all exception classes. For every try block there must be a corresponding finally block.....
MCQ->Which of the following statements are correct about the exception reported below? Unhandled Exception: System.lndexOutOfRangeException: Index was outside the bounds of the array. at IndiabixConsoleApplication.Program.Main(String[] args) in D:\ConsoleApplication\Program.cs:line 14 The program did not handle an exception called IndexOutOfRangeException. The program execution continued after the exception occurred. The exception occurred in line number 14. In line number 14, the program attempted to access an array element which was beyond the bounds of the array. The CLR could not handle the exception.....
MCQ->What will be the output of the program? public class Test { public static void aMethod() throws Exception { try / Line 5 / { throw new Exception(); / Line 7 / } finally / Line 9 / { System.out.print("finally "); / Line 11 / } } public static void main(String args[]) { try { aMethod(); } catch (Exception e) / Line 20 / { System.out.print("exception "); } System.out.print("finished"); / Line 24 / } }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution