PRN292c_-_FA_2023_-_2_1241.webp
M

PRN292c_-_FA_2023_-_2_1241.webp

(12
Answer (Choose 1 answer)
Which of the following is correct considering the below code?
List<string> L = new List<string>(){ "Screen", "Mouse", "Laptop" };
int C = 0:foreach (var e in L)
{ C += e.Length;
} Console.WriteLine($"C={C}");
A. The output of this code is: C=17
B. The output of this code is: C=18
C. We cannot use var e in the foreach statement and we have to use string e instead.
D. The output of this code is: C=16

Elt

Thông tin

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

Image metadata

Filename
PRN292c_-_FA_2023_-_2_1241.webp
File size
68.7 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom