What will be the output of the below code segment?

class Program
{
static void Main(string[] args)
{
Console.WriteLine(new List<double>() { 1, 2.06, -36.4, -4, 5.90, 61.9, 79.8, 8, 9, 18.0, 23.7 }.OrderByDescending(o => o).Take(1).Single());
Console.ReadKey(true);
}
}

 Posted by Rajnilari2015 on 10/24/2015 | Category: C# Interview questions | Views: 660 | Points: 40
Select from following answers:
  1. -36.4
  2. 5.90
  3. 61.9
  4. 79.8
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response