Microsoft
70-515 · Question #56
70-515 Question #56: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #56. The question stem and answer options stay visible for context.
Question
You are developing an ASP.NET Web application. The application includes a Icomparer<string> implementation named CaseInsensitiveComparer that compares strings without case sensitivity You add the following method.(Line numbers are included for reference only.) 01 public IEnumerable<string>SortWords(string[] words) 02 { 03 04 } You need to sort the array by word length and then by alphabetic order, ignoring case. Which code segment should you add at line 03?
Options
- Areturn words.Orderby(a => a, new
- Breturn words.Orderby(a =>a.Length).Orderby(a => a,new
- Creturn words.Orderby(a =>a.Length).ThenBy(a=> a, new
- Dreturn words.Orderby(a =>a.Length.toString(), new
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.