27
Answer (Choose 1 answer)
Which of the following is a correct statement about this C# code?
try
//line 1
{ //line 2
int[] r = new int[] { 1 };//line 3
r[2] = 0;//line 4 Console.WriteLine("Code");//line 5
//line 6
} catch (Exception e)//line 7
{ //line 8
Console.WriteLine("Exception"); //line 9
} finally //line 10 //line 11
{ Console.WriteLine("Finally"); //line 13 //line 14 Console.WriteLine("After exception"); //line 15
//line 12
A. Lines 9, 13, and 15 will be executed normally.
B. Lines 9 and 13 will be executed but not line 15
C. This code raises an exception at runtime
D. Line 9 will be executed but not line 13 and line 15
Elt