

MCQOPTIONS
Saved Bookmarks
1. |
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(); } } |
A. | Run time error |
B. | 64 |
C. | Compile time error |
D. | 81 |
Answer» C. Compile time error | |