For which ModelState.IsValid Validate
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(); }}
What is the output for the following set of code static void Main(string[] args) { int i = 10; double d = 35.78; fun(i); fun(d); Console.ReadLine(); } static void fun(double d) { Console.WriteLine(d); }
What will be the output of the code snippet?class Program { static void Main(string[] args) { String s1 = "Hello World"; String s2 = s1.Substring(0, 4); Console.WriteLine(s2); Console.ReadLine(); } }
Select output of the given set of Code static void Main(string[] args){ String name = "Dr.Gupta"; Console.WriteLine("Good Morning" + name);}
Which statement is correct among the mentioned statements The for loop works faster than a while loop2. for( ; ; )implements an infinite loop
A ___________ performs invisible tasks even if you write no code
What will be output of the following conversion ?static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.Tochar(b))); Console.ReadLine(); }
Choose the correct output for given set of code enum per { a, b, c, d, } per.a = 10; Console.writeline(per.b);
Which among the given classes is present in System.Collection.Generic.namespace