General Questions

Question 6 :

In which of the following should the methods of a class differ if they are to be treated as overloaded methods?

1. Type of arguments
2. Return type of methods
3. Number of arguments
4. Names of methods
5. Order of arguments


A). 2, 4
B). 3, 5
C). 1, 3, 5
D). 3, 4, 5
Answer : Option C

Question 7 :

Can static procedures access instance data?


A). Yes
B). No
Answer : Option B

Question 8 :

Which of the following statements are correct about constructors in C#.NET?

1. Constructors cannot be overloaded.
2. Constructors always have the name same as the name of the class.
3. Constructors are never called explicitly.
4. Constructors never return any value.
5. Constructors allocate space for the object in memory.


A). 1, 3, 5
B). 2, 3, 4
C). 3, 5
D). 4, 5
E). None of these
Answer : Option B

Question 9 :

How many times can a constructor be called during lifetime of the object?


A). As many times as we call it.
B). Only once.
C). Depends upon a Project Setting made in Visual Studio.NET.
D). Any number of times before the object gets garbage collected.
E). Any number of times before the object is deleted.
Answer : Option B

Question 10 :

Is it possible to invoke Garbage Collector explicitly?


A). Yes
B). No
Answer : Option A