Home / Programming MCQs / C# MCQs / Question
M
Q. Which of the following statements correctly define .NET Framework?
No solution found for this question. Add Solution and get +2 points.
You must be Logged in to update hint/solution
Login to discuss.
Which of the following statements are correct? 1. A struct can contain properties. 2. A struct can contain constructors. 3. A struct can contain protected data members. 4. A struct cannot contain methods. 5. A struct cannot contain constants.
Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
Correct statement about constructors in C#.NET is ?
Which of the following is the correct way to create an object of the class Sample? 1. Sample s = new Sample(); 2. Sample s; 3. Sample s; s =new Sample(); 4. s = new Sample();
A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?
A _____ is any valid C# variable ending with a colon.
Which of the following will be the correct output for the C#.NET code snippet given below? String s1 = "ALL MEN ARE CREATED EQUAL"; String s2; s2 = s1.Substring(12, 3); Console.WriteLine(s2);
What is String.Length in C#?
Which of the following characterizes the relational model for databases?
What will be the output of the following C# code?
Discusssion
Login to discuss.