CSE MCQs :: C#.Net MCQs
- Choose the statements which makes delegate in C#.NET different from a normal class?
- Which of the following are the correct statements about delegates?
-
Which among the following is the correct statement about delegate declaration ?delegate void del(int i);
- Which of the following is an incorrect statement about delegate?
- Select the type argument of an open constructed type?
- Select the namespace which should be included while making use of LINQ operations:
- Which of the following is a valid statement about generic procedures in C#.NET are?
-
For the given set of codes, which query will work according to the set of code?class Program{static void Main(string[] args){int[] nums = { 1, -2, 3, 0, -4, 5 };int len = /*_________________ */Console.WriteLine("The number of positive values in nums: " + len);Console.ReadLine();}}
- Which among the given classes is present in System.Collection.Generic.namespace?
-
Select the output for the given code snippet:class Program{static void Main(string[] args){int[] nums = { 1, -2, 3, 0, -4, 5 };var posNums = from n in numswhere n % 2 ==0select n;Console.Write("The positive values in nums: ");foreach (int i in posNums) Console.Write(i + " ");Console.WriteLine();Console.ReadLine();}}