PRN221_-_FA_2024_-_RE_3088.webp
Q

PRN221_-_FA_2024_-_RE_3088.webp

Kizspy | Question: 34
(Choose 1 answer)
class Program{
static void Show(string message){
Console.Write(message);
}
async static Task Main(string[] args) {
Task[] arr = {
Task.Run(()=>Show("A")),
Task.Run(()=>Show("B"))
};
await Task. WhenAll(arr);
Console.ReadLine();
}
}
Which one of the following is the output of the above code?
A. Results are unpredictable
B. AB
C. BA
D. An exception will be thrown

Thông tin

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

Share this media

Back
Bên trên Bottom