CSI104_-_SP23_-_FE_6_94.webp
Kechizu2003

CSI104_-_SP23_-_FE_6_94.webp

(Choose 1 answer)
var q = from A in N
Which of the following statements is correct considering the code below?string] N = new string[] { "Ahmad", "Mahmoud", "Sami", "Rama", "Reem", "Dana" };
orderby A descending where A.Length > 5
select A;
foreach (string S in N){}
Console.Write($"{S}");
A. The LINQ query selects the strings that have more than 5 characters and orders them in descending order.
B. This code is not correct because we did not determine the data type of the variable A
C. This code is not correct since "orderby" comes before "where", the "orderby" clause must come after the "where" clause.
D. The code is incorrect and it has any compile-time errors.


Exit 36

Thông tin

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

Share this media

Back
Bên trên Bottom