Monday, September 15, 2014

OOPS Concepts - C++

1. 
Which of the following type of class allows only one object of it to be created?
A.Virtual class
B.Abstract class
C.Singleton class
D.Friend class

2. 
Which of the following is not a type of constructor?
A.Copy constructor
B.Friend constructor
C.Default constructor
D.Parameterized constructor
3. 
Which of the following statements is correct?
A.Base class pointer cannot point to derived class.
B.Derived class pointer cannot point to base class.
C.Pointer to derived class cannot be created.
D.Pointer to base class cannot be created.

4. 
Which of the following is not the member of class?
A.Static function
B.Friend function
C.Const function
D.Virtual function
5. 
Which of the following concepts means determining at runtime what method to invoke?
A.Data hiding
B.Dynamic Typing
C.Dynamic binding
D.Dynamic loading

No comments: