MCQOPTIONS
Saved Bookmarks
| 1. |
What would be the output of following code snippet? { try { int a, b; b = 0; a = 10 / b; Console.WriteLine("A"); } catch(ArithmeticException e) { Console.WriteLine("B"); } Console.ReadLine(); } |
| A. | A |
| B. | B |
| C. | Compile time error |
| D. | Run time error |
| Answer» C. Compile time error | |