CDAC Question Paper on Programming Concept



Like us on Facebook




CDAC Programming Question Paper



1. The ability to reuse objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as Information hiding
Inheritance
Redefinition
Overloading


2. The term given to the process of hiding all the details of an object that do not contribute to its essential characteristics is called _____________ 
data-hiding
packaging
encapsulation
abstraction


3. Object-oriented technology`s ______ feature means that a small change in user requirements should not require large changes to be made to the system Abstraction
Modularity
Encapsulation
Modelling


4. An object has _____ State
Behaviour
Identity
All of these options


5. Which of the following is true: 
Class is an object of an object
Class is meta class
Class cannot have zero instances
None of these options


6. If a derived class object is explicitly destroyed by applying the delete operator to a base-class pointer to the object, the _____ function is automatically called on the object 
Derived-class destructor
Base-class destructor
Base-class constructor
Derived-class constructor


7. In object orientated programming a class of objects can _____________ properties from another class of objects 
utilize
borrow
inherit
adapt


8. Contracts are not meant to be used in cases of _______ 
Composition
`has-a` relationship
`is-a` relationship
Both Composition and `has-a` relationship


9. Inheritance through interface is called ________ 
Implementation inheritance
Definition inheritance
Delegation inheritance
Interface inheritance model


10. When a class uses dynamic memory, what member functions should be provided by the class? 
An overloaded assignment operator
The copy constructor
A destructor
All of these options


11. ______ means that both the data and the methods which may access it are defined together in the same unit 
Data hiding
Encapsulation
Data Binding
None of these options


12. The term given to the process of hiding all the details of an object that do not contribute to its essential characteristics is called _____________ 
data-hiding
packaging
encapsulation
grouping


13. Car contains a steering wheel is example of ________ 
Composition
Association
Composition and Association
None of these options


14. Can two classes contain member functions with the same name? No
Yes, but only if the two classes have the same name
Yes, but only if the main program does not declare both kinds
Yes, this is always allowed


15. A contract is implemented through 
Class
Interface
Abstract Class
Interface and Abstract Class










No comments:

Post a Comment