Home / MCQ Bank / Computer
Computer Exception Handling In C Sharp Difficulty: Medium

What will be the output of the following C# code? public static void Main(string[] args) { try { int a, b, c = 5; b = 0; a = c / b; Console.WriteLine("A"); } catch (ArithmeticException e) { int c = 5; int i = 10; int z = 2 * c - i; Console.WriteLine("B"); Console.WriteLine(z); } Console.ReadLine(); }

Select the correct option to test your answer:

More Computer Questions

Which method is used to read a line of text from the keyboard in Java? COBOL is an acronym for________________? Which of the following file format is graphic device only for windows? Which queue implementation is used for circular buffering? In business analytics, what is the primary goal of "supply chain optimization"?