Classes and Objects on C# related Questions and Answers - Page 2

Question 11 : Name a method which has the same name as that of class and which is used to destroy objects also called automatically when application is finally on process of being getting terminated.
1. Constructor
2. Finalize()
3. Destructor
4. End
View Answer   Discuss with Members

Question 12 : The method called by clients of a class to explicitly release any resources like network,connection,open files etc.When the object is no longer required?
1. Finalize()
2. End()
3. Dispose()
4. Close()
View Answer   Discuss with Members

Question 13 : Which operator among the following signifies the destructor operator?
1. ::
2. :
3. ~
4. &
View Answer   Discuss with Members

Question 14 : Number of constructors a class can define is ?
1. 1
2. 2
3. Any number
4. None of the mentioned
View Answer   Discuss with Members

Question 15 : What is output for the following set of expression?
int a+= (float) b/= (long)c.
1. float
2. int
3. long
4. None of the mentioned
View Answer   Discuss with Members

Question 16 : Which reference modifier is used to define reference variable?
1. &
2. ref
3. #
4. $
View Answer   Discuss with Members

Question 17 : The data members of a class by default are ?
1. protected, public
2. private, public
3. private
4. public
View Answer   Discuss with Members

Question 18 : Correct way of declaration of object of the following class is ?
class name
1. name n = new name();
2. n = name();
3. name n = name();
4. n = new name();
View Answer   Discuss with Members

Question 19 : “A mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse.In short it isolates a particular code and data from all other codes and data. A well-defined interface controls the access to that particular code and data.”
1. Abstraction
2. Polymorphism
3. Inheritance
4. Encapsulation
View Answer   Discuss with Members


View 11 - 20 of 25 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter