Microsoft
70-511 · Question #197
70-511 Question #197: Real Exam Question with Answer & Explanation
The correct answer is A. Dim sortedStudents As IEnnumerable(Of Student) =. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application for managing student information. You place a Button control named btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml file. You create a Student class with two properties: FirstName and LastName. You create the following code segment in the constructor of the main window. The DataGrid control displays the list of students unsorted. You need to ensure that the list of students is sorted by last name. Which code segment should you add to the click event handler of the Button control?
Options
- ADim sortedStudents As IEnnumerable(Of Student) =
- BStudents.Sort()
- CDim sortedStudents As IEnumerable(Of Student)
- DStudents.Reversed
Community Discussion
No community discussion yet for this question.