Vidyalelo
C# Programming · Q115

Miscellaneous in C Sharp

Programming · C# Programming · question 115

Q115

What will be the output of the following C# 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();

A.
Run time error
B.
64
Answer
C.
Compile time error
D.
81

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board