Q36.webp
I

Q36.webp

  • Media owner Ino20041
  • Ngày thêm
Kizspy | Question: 36
(Choose 1 answer)
Which of the following code snippets demonstrates the use of a Func delegate?
A. Func<int, int, int> add (a, b) => a+b;
Console.WriteLine(add(5, 3));
B. Func<string> greet = () => "Hello";
Console.WriteLine(greet);
C. Func<int, string, string> concatenate = (a, b) => b+a;
Console.WriteLine(concatenate(3, "Number: "));
D. Func<int, string> output = (x) => x.ToString();

Thông tin

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

Share this media

Back
Bên trên Bottom