Q27_20231209111556.jpg
nhunghoang

Q27_20231209111556.jpg

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
Chưa có bình luận nào.

Thông tin

Category
PRN292c
Thêm bởi
nhunghoang
Ngày thêm
Lượt xem
23
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
Q27_20231209111556.webp
File size
76.7 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom