Sail E0 Webinar
Question
What will be the output of the given code snippet?class Program{    static void Main(string[] args)    {        int[] nums = { 1 };        var posNums = from n in nums                      select Math.Pow(4 ,3);        Console.Write("The values in nums: ");        foreach (int i in posNums)         Console.Write(i + " ");        Console.WriteLine();        Console.ReadLine();    }}
Options:
A .  Run time error
B .  64
C .  Compile time error
D .  81
Answer: Option B





Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers