Vidyalelo
C# Programming · Q101

Exception Handling in C Sharp

Programming · C# Programming · question 101

Q101

What will be the output of the following C# code snippet? class Output public static void main(String args[]) try int a = 10; int b = 5; int c = b - 5 / 5; Console.WriteLine("Hi"); catch(Exception e) Console.WriteLine("hello");

A.
Hi
Answer
B.
hello
C.
Hihello
D.
Compile time error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board