Q12_20231209111443.jpg
nhunghoang

Q12_20231209111443.jpg

(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
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
15
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
Q12_20231209111443.webp
File size
68.7 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom