Tuesday, September 16, 2014

OOPS Concepts - C++

1. 
Which of the following term is used for a function defined inside a class?
A.Member Variable
B.Member function
C.Class function
D.Classic function
2. 
Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
A.Call by value
B.Call by reference
C.Default arguments
D.Call by pointer
3. 
How many instances of an abstract class can be created?
A.1B.5
C.13D.0
4. 
Which of the following cannot be friend?
A.Function
B.Class
C.Object
D.Operator function
5. 
Which of the following concepts of OOPS means exposing only necessary information to client?
A.Encapsulation
B.Abstraction
C.Data hiding
D.Data binding
6. 
Why reference is not same as a pointer?
A.A reference can never be null.
B.A reference once established cannot be changed.
C.Reference doesn't need an explicit dereferencing mechanism.
D.All of the above
7. 
Which of the following concepts provides facility of using object of one class inside another class?
A.EncapsulationB.Abstraction
C.CompositionD.Inheritance
8. 
How many types of polymorphisms are supported by C++?
A.1B.2
C.3D.4
9. 
Which of the following is an abstract data type?
A.intB.double
C.stringD.Class
10. 
Which of the following concepts means adding new components to a program as it runs?
A.Data hiding
B.Dynamic typing
C.Dynamic binding
D.Dynamic loading

No comments: