topic/Constructors
Start Test
Question No
Title
Type
Marks
650.
Which of the following ways to create an object of theSampleclass given below will work correctly?class Sample { int i; Single j; double k; public Sample (int ii, Single jj, double kk) { i = ii; j = jj; k = kk; } }
MCQ
5
649.
Which of the following statements is correct about the C#.NET code snippet given below?namespace IndiabixConsoleApplication { class Sample { public int func() { return 1; } public Single func() { return 2.4f ; } } class Program { static void Main(string[ ] args) { Sample s1 = new Sample(); int i; i = s1.func(); Single j; j = s1.func(); } } }
MCQ
5
651.
Which of the following statements are correct about static functions?Static functions can access only static data.Static functions cannot call instance functions.It is necessary to initialize static data.Instance functions can call static functions and access static data.thisreference is passed to static functions.
MCQ
5
652.
Which of the following statements is correct about constructors?
MCQ
5