

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the given code snippet?
class Program { static void Main(string[] args) { int[] nums = {3 ,1 ,2 ,5 ,4}; var ltAvg = from n in nums let x = nums.Average() where n < x select n; Console.WriteLine("The average is " + nums.Average()); Console.ReadLine(); } } |
A. | Run time error |
B. | 3 |
C. | 5 |
D. | Compile time error |
Answer» C. 5 | |