C# Interview Questions and Answers

Q-1. What is the default access modifier of the method? Answer: Private Q-2. What Will Be The Output Of The Following Code Snippet: public class Program { public static void Main(string[] args) { Console.WriteLine(Math.Round(0.5)); Console.WriteLine(Math.Round(1.5)); Console.WriteLine(Math.Round(2.5)); Console.WriteLine(Math.Round(3.5)); Console.WriteLine(Math.Round(4.5)); Console.WriteLine(Math.Round(5.5)); Console.WriteLine(Math.Round(6.5)); Console.WriteLine(Math.Round(7.5)); Read more