MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the given code snippet? class Program { static void Main(string[] args) { int x = 5; int y = (int)Math.Pow(x,2); int z = (int)Math.Pow(y, 2); Console.WriteLine(z); Console.ReadLine(); } } |
| A. | 25 |
| B. | 625 |
| C. | Compile time error |
| D. | Run time error |
| Answer» C. Compile time error | |