PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
P

PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp

Inle Choices
(Choose 1 answer)
interface IA {
}
int Calc(params int[] a):
class A:IA {
public int Calc(params int[] a)
int s = 1, i;
for (i = 0; i < a.Length; i++)s *= a[i]:
return s;
}
}
class Program {
static void Main(string[] args)
int s;
IA obj = new A():
s = obj. Calc(2.1.4):
Console.WriteLine(++s):
}
} The output will be:
A. 9
B. 7
C. 10
D. 8

Q: 23

Thông tin

Category
PRN211
Thêm bởi
precious_treasure
Ngày thêm
Lượt xem
1,161
Lượt bình luận
10
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN211_-_SP_2024_-_Block_5_-_FE_1927.webp
File size
170.5 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom