Home / MCQ Bank / Computer
Computer Miscellaneous In C Sharp

What will be the output of the following C# code snippet? class Program { static void Main(string[] args) { int y = (int)Math.Max(4,2); int z = (int)Math.Pow(y, 2); Console.WriteLine(z); Console.ReadLine(); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 16

Related Computer Questions

What is the significance of NiFi's "DetectChange" processor? Which NLP technique involves converting words into their base or dictionary form, reducing them to their root form? What will be the output of the following Java code? class exception_handling { public static void main(String args[]) { try { throw new NullPointerException ("Hello"); } catch(ArithmeticException e) { System.out.print("B"); } } } Which of the following is a worldwide system of computer networks? rand() and srand() functions are used ______