Wednesday, September 17, 2014

OOPS Concepts - C++

1. 
Which of the following statement is correct?
A.A constructor is called at the time of declaration of an object.
B.A constructor is called at the time of use of an object.
C.A constructor is called at the time of declaration of a class.
D.A constructor is called at the time of use of a class.
2. 
Which of the following correctly describes overloading of functions?
A.Virtual polymorphism
B.Transient polymorphism
C.Ad-hoc polymorphism
D.Pseudo polymorphism
3. 
Which of the following approach is adapted by C++?
A.Top-downB.Bottom-up
C.Right-leftD.Left-right
4. 
Which of the following is correct about function overloading?
A.The types of arguments are different.
B.The order of argument is different.
C.The number of argument is same.
D.Both A and B

5. 
Which of the following is correct about class and structure?
A.class can have member functions while structure cannot.
B.class data members are public by default while that of structure are private.
C.Pointer to structure or classes cannot be declared.
D.class data members are private by default while that of structure are public by default.
6. 
Which of the following concepts means wrapping up of data and functions together?
A.AbstractionB.Encapsulation
C.InheritanceD.Polymorphism
7. 
Which of the following concepts means waiting until runtime to determine which function to call?
A.Data hiding
B.Dynamic casting
C.Dynamic binding
D.Dynamic loading
8. 
How "Late binding" is implemented in C++?
A.Using C++ tables
B.Using Virtual tables
C.Using Indexed virtual tables
D.Using polymorphic tables
9. 
Which of the following is the correct class of the object cout?
A.iostream
B.istream
C.ostream
D.ifstream
10. 
Which of the following cannot be used with the keyword virtual?
A.class
B.member functions
C.constructor
D.destructor

No comments: